diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-09 11:30:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-09 11:30:09 (GMT) |
commit | 4ba2d9a81ad7f1d8b015c4f3f1dd0e6f603ecc3b (patch) | |
tree | 06b5a47205631b604a40625661f91c5b670a1110 /tests | |
parent | 57d6529dcc314ab996a90d55270e3dae7dc1f92e (diff) | |
parent | 55cb4d9026c1222d6c678bdfa8698f49082bfd92 (diff) | |
download | tcl-4ba2d9a81ad7f1d8b015c4f3f1dd0e6f603ecc3b.zip tcl-4ba2d9a81ad7f1d8b015c4f3f1dd0e6f603ecc3b.tar.gz tcl-4ba2d9a81ad7f1d8b015c4f3f1dd0e6f603ecc3b.tar.bz2 |
Fix [6ca52aec14e0b33543d3cd9895f060b852ac4dbc|6ca52aec14]: HTTP package: Memory leak if client requests "Connection: close" but server responses with "Connection: keep-alive"
http: 2.8.10 -> 2.8.11
Diffstat (limited to 'tests')
-rw-r--r-- | tests/http.test | 8 |
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" |