summaryrefslogtreecommitdiffstats
path: root/tests/http.test
diff options
context:
space:
mode:
authoraspect <aspect+tclcore@abstracted-spleen.org>2017-02-12 12:57:29 (GMT)
committeraspect <aspect+tclcore@abstracted-spleen.org>2017-02-12 12:57:29 (GMT)
commit55cb4d9026c1222d6c678bdfa8698f49082bfd92 (patch)
treeffe35b39b3c3c39397510c34e6bbb7c40692ceeb /tests/http.test
parent9b8fe92d1ec10b1010d91d504deab315538cce0e (diff)
downloadtcl-55cb4d9026c1222d6c678bdfa8698f49082bfd92.zip
tcl-55cb4d9026c1222d6c678bdfa8698f49082bfd92.tar.gz
tcl-55cb4d9026c1222d6c678bdfa8698f49082bfd92.tar.bz2
fix chan leak with http keepalive vs close (bug [6ca52aec14])bug_6ca52aec14
Diffstat (limited to 'tests/http.test')
-rw-r--r--tests/http.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/http.test b/tests/http.test
index 12ad475..d7e42c2 100644
--- a/tests/http.test
+++ b/tests/http.test
@@ -592,6 +592,14 @@ test http-4.15 {http::Event} -body {
} -cleanup {
catch {http::cleanup $token}
} -returnCodes 1 -match glob -result "couldn't open socket*"
+test http-1.15 {Leak with Close vs Keepalive (bug [6ca52aec14]} -body {
+ set before [chan names]
+ set token [http::geturl $url -headers {X-Connection keep-alive}]
+ http::cleanup $token
+ update
+ set after [chan names]
+ expr {$before eq $after}
+} -result 1
test http-5.1 {http::formatQuery} {
http::formatQuery name1 value1 name2 "value two"