Artifacts Associated With Ticket f81beca7afabb3d2
Ticket change [f36a579110] (rid 173296) by alakendu on 2019-07-10 10:24:29:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I am using http::geturl to POST a Binary file using these command set fid [open $filename RDONLY] fconfigure $fid -buffering full -encoding binary -translation binary ::http::geturl {http://10.39.51.221:11009/api/v1/sessions/1/ixnetwork/files?filename=test} -type application/octet-stream -querychannel $fid -binary true -headers {X-Api-Key 00000000000000000000000000000000 IxNetwork-Lib {IxNetwork tcl client v.IXTCLPROTOCOLVERSION} Host 10.39.51.221} -timeout 180000 This code was working properly against Tcl-8.6 (patchlevel-8.6.6) with http-2.8.9. But client got hang when use the same code against against same Tcl-8.6 (patchlevel-8.6.6) with different http package (http-2.9) I feel this behavior change due to this chain-list https://github.com/tcltk/tcl/commit/44c0faddc48420a1fd864d75ab6cb3c7ecbf577f?diff=split earlier -translation was set only as binary (http-2.8.9) fconfigure $state(-querychannel) -blocking 1 -translation binary whereas currently -translation also pull from socket (http-2.9) lassign [fconfigure $sock -translation] trRead trWrite fconfigure $state(-querychannel) -blocking 1 \ -translation [list $trRead binary] Same code is working properly when reverted to (fconfigure $state(-querychannel) -blocking 1 -translation binary) in http-2.9 code base - foundin initialized to: "http-2.9"
- is_private initialized to: "0"
- login: "alakendu"
- priority initialized to: "5 Medium"
- private_contact initialized to: "66fb25d263737f92dfc9ab316118aa0eee953c02"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "alakendu"
- subsystem initialized to: "29. http Package"
- title initialized to:
File upload issue using http::geturl in Tcl contain http-2.9 package
- type initialized to: "Bug"
Ticket change [22c90d9437] (rid 173328) by kjnash on 2019-07-11 14:16:42:
- icomment:
Thank you for your report and workaround/fix. The tracker will not let me change the "Assigned To" field to myself, but I will attempt to process your report.
- login: "kjnash"
- mimetype: "text/plain"
- icomment:
Ticket change [7f54f7f839] (rid 173388) by kjnash on 2019-07-14 09:15:18:
- icomment:
Hi Alakendu, Yes, the change that you have pinpointed was a mistake. Thank you for locating it so precisely. The purpose of the changeset was to modify the read and write halves of [fconfigure $sock -translation] independently, because HTTP/1.1 pipelining allows a new HTTP request to be made before the previous HTTP response has completed. When a read or write operation needs to change its value of -translation for $sock, it must not change the value for the other half of the channel. The properties of $querychannel do not need changing. Although the fix is small, I have created a branch bug-f81beca7af to facilitate testing. Best wishes, Keith.
- login: "kjnash"
- mimetype: "text/plain"
- icomment:
Ticket change [69bfec118e] (rid 173467) by alakendu on 2019-07-17 09:31:31:
- icomment: "Thanks Keith for your valuable support!"
- login: "alakendu"
- mimetype: "text/html"
Ticket change [532f6e212c] (rid 190555) by dgp on 2020-12-28 13:30:16:
- icomment:
Looks like this was fixed in http 2.9.2. Any reason not to close the ticket?
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- icomment:
Ticket change [859bfdafb3] (rid 190578) by kjnash on 2020-12-31 15:11:03:
- closedate changed to: "2459215.13268454"
- closer changed to: "kjnash"
- login: "kjnash"
- mimetype: "text/plain"
- status changed to: "Closed"
Ticket change [3c5deb0de3] (rid 191469) by anonymous on 2021-01-28 19:44:47:
- closedate changed to: "2459243.32276809"
- closer changed to: "anonymous"
- icomment:
installed 2.9.5 and issue is still not fixed, when will this fix be integrated?
- login: "anonymous"
- mimetype: "text/plain"
Ticket change [f841fa7d82] (rid 191470) by anonymous on 2021-01-28 19:45:29:
- closer changed to: "nobody"
- login: "anonymous"
- mimetype: "text/plain"
- status changed to: "Pending"
Ticket change [d1cc5a72b8] (rid 204127) by kjnash on 2022-09-11 17:03:32:
- closedate changed to: "2459834.21079117"
- closer changed to: "kjnash"
- login: "kjnash"
- mimetype: "text/plain"
- status changed to: "Closed"