diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-01-13 11:50:41 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-01-13 11:50:41 (GMT) |
commit | d223e40acdc0c01df1822a25bd1200183bdcfd72 (patch) | |
tree | 36bb1e33c7e4d45938ff1a46b32a87ce96ca3811 /library | |
parent | 52a32d4a582fd56ec92d231693e77eb45a4c0c71 (diff) | |
parent | 23c609b9565d425e7404e304d20726e328c01078 (diff) | |
download | tcl-d223e40acdc0c01df1822a25bd1200183bdcfd72.zip tcl-d223e40acdc0c01df1822a25bd1200183bdcfd72.tar.gz tcl-d223e40acdc0c01df1822a25bd1200183bdcfd72.tar.bz2 |
* library/http/http.tcl (http::Connect): [Bug 3472316]: Ensure that we
only try to read the socket error exactly once.
Diffstat (limited to 'library')
-rw-r--r-- | library/http/http.tcl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index 12820af..a30c576 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -867,12 +867,11 @@ proc http::cleanup {token} { proc http::Connect {token} { variable $token upvar 0 $token state - global errorInfo errorCode if { [eof $state(sock)] || - [string length [fconfigure $state(sock) -error]] + [set err [fconfigure $state(sock) -error]] ne "" } { - Finish $token "connect failed [fconfigure $state(sock) -error]" 1 + Finish $token "connect failed $err" 1 } else { set state(status) connect fileevent $state(sock) writable {} |