summaryrefslogtreecommitdiffstats
path: root/tests/http.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-09 11:31:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-09 11:31:14 (GMT)
commit2130fd858277aa77aa78b99690c412e99b04cd66 (patch)
treeeb92d86e032a361abb2782b43ab1d28c100ba968 /tests/http.test
parent1ed15145a61cd70b24a6ee45c27885ded0bbdc80 (diff)
parentf32ecd5894792d7327b82d03ce280b2268ff5233 (diff)
downloadtcl-2130fd858277aa77aa78b99690c412e99b04cd66.zip
tcl-2130fd858277aa77aa78b99690c412e99b04cd66.tar.gz
tcl-2130fd858277aa77aa78b99690c412e99b04cd66.tar.bz2
merge core-8-6-branch
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 75c963d..025c32e 100644
--- a/tests/http.test
+++ b/tests/http.test
@@ -588,6 +588,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"