summaryrefslogtreecommitdiffstats
path: root/library/http/http.tcl
diff options
context:
space:
mode:
authorwelch <welch>1999-10-30 00:31:58 (GMT)
committerwelch <welch>1999-10-30 00:31:58 (GMT)
commit9a5af1a04872f24f49aefb7bfaf2966da6bd828d (patch)
treec8b1b0c8052431e8a9addbc1d8b98bdb325c1aa2 /library/http/http.tcl
parent7dc09492f052344474475f9d24403ce20d1022c2 (diff)
downloadtcl-9a5af1a04872f24f49aefb7bfaf2966da6bd828d.zip
tcl-9a5af1a04872f24f49aefb7bfaf2966da6bd828d.tar.gz
tcl-9a5af1a04872f24f49aefb7bfaf2966da6bd828d.tar.bz2
Fixed bug in the handling of the status code after an asynchronous connect,
e.g., one that is used with the -timeout flag.
Diffstat (limited to 'library/http/http.tcl')
-rw-r--r--library/http/http.tcl5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 91a997b..7bcc04a 100644
--- a/library/http/http.tcl
+++ b/library/http/http.tcl
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and
# redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: http.tcl,v 1.12 1999/10/21 02:16:37 hobbs Exp $
+# RCS: @(#) $Id: http.tcl,v 1.13 1999/10/30 00:31:58 welch Exp $
package provide http 2.1 ;# This uses Tcl namespaces
@@ -233,14 +233,13 @@ proc http::geturl { url args } {
# Wait for the connection to complete
if {$state(-timeout) > 0} {
- #fileevent $s writable [list set $token\(status) connect]
fileevent $s writable [list http::Connect $token]
http::wait $token
if {[string equal $state(status) "timeout"]} {
return
}
fileevent $s writable {}
- unset state(status)
+ set state(status) ""
}
# Send data in cr-lf format, but accept any line terminators