Artifacts Associated With Ticket 2624536
Ticket change [f966aa0b06] (rid 91701) by tjikkun on 2009-02-21 16:48:37:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I seem to be having a problem with http 2.7.2 with it, amsn doesn't connect If i revert the change from http://tcl.cvs.sourceforge.net/viewvc/tcl/tcl/library/http/http.tcl?r1=1.71&r2=1.72&pathrev=MAIN between line 1026 and 1027 it works again. A puts on $line gives me: HTTP/1.1 200 OK HTTP/1.1 200 OK This is with amsn 0.97.2 P.S. with amsn latest svn there is a different bug when used with http 2.7.2, if I have time I will try to investigate that one also.
- foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "tjikkun"
- subsystem initialized to: "None"
- title initialized to: "newer http prevents connection"
- type initialized to: "Bug"
Ticket change [6658c87f11] (rid 102699) by dgp on 2009-02-22 04:10:11:
- assignee changed to: "patthoyts"
- foundin changed to: "obsolete: 8.5.6"
- priority changed to: "9 Immediate"
- subsystem changed to: "29. http Package"
Ticket change [324cf04229] (rid 93591) by tjikkun on 2009-02-24 01:55:35:
- icomment:
I just found out the bug with amsn svn is not a different one, it is fixed by the same fix as above: # cvs diff -u cvs diff: Diffing . Index: http.tcl =================================================================== RCS file: /cvsroot/tcl/tcl/library/http/http.tcl,v retrieving revision 1.72 diff -u -r1.72 http.tcl --- http.tcl23 Oct 2008 23:17:38 -00001.72 +++ http.tcl23 Feb 2009 18:55:05 -0000 @@ -1024,6 +1024,8 @@ } } lappend state(meta) $key [string trim $value] + } elseif {[string match HTTP* $line]} { + set state(http) $line } } } else { - login: "tjikkun"
- mimetype: "text/plain"
- username: "tjikkun"
- icomment:
Ticket change [6024576d52] (rid 115942) by teopetuk on 2009-03-29 15:08:14:
- icomment:
It seems to me that this bug occurs because ::http::Event procedure switches from "connecting" state too early (before the initial HTTP line is received). The following patch prevents from switching to "header" state if gets returned -1 (though I'm not sure if this patch fixes the bug completely): --- http.tcl.orig +++ http.tcl @@ -943,9 +943,10 @@ return } if {$state(state) eq "connecting"} { - set state(state) "header" if {[catch {gets $sock state(http)} n]} { return [Finish $token $n] + } elseif {$n >= 0} { + set state(state) "header" } } elseif {$state(state) eq "header"} { if {[catch {gets $sock line} n]} { - login: "teopetuk"
- mimetype: "text/plain"
- username: "teopetuk"
- icomment:
Ticket change [1ff3dad7c9] (rid 91230) by andreas_kupries on 2009-03-31 02:19:42:
- icomment:
Pat, we recently talked about http, and I told you that with http 2.7.2 I got an empty result for some urls (sourceforge xml tracker export). Applying teopetuk's change to my local copy of http 2.7.2 fixed that problem.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [efb650d0a3] (rid 109049) by dgp on 2009-04-03 22:26:25:
- icomment:
any prospects for a quick fix on this one?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [105607dcec] (rid 94962) by dgp on 2009-04-10 00:07:21:
- closedate changed to: "2009-04-09T17:07:21"
- closer changed to: "dgp"
- icomment:
teopetuk patch committed for http 2.7.3. Please re-open if the problems still show up using http 2.7.3.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- username: "dgp"
Ticket change [ce433481e8] (rid 96022) by patthoyts on 2009-04-10 20:46:36:
- closedate changed to: "2009-04-10T13:46:36"
- closer changed to: "patthoyts"
- icomment:
allow_comments - 1 I have made the http tests replicate this fault now by having the test server return the initial HTTP response line in two parts. This shows that the current patch is ok and fixes the fault and will not recurr.
- login: "patthoyts"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "patthoyts"