Overview
| Artifact ID: | f36a579110abf7ee7827e3b3e696466ebeb5c3e9d1c941d531b9bc5f510d96d0 |
|---|---|
| Ticket: | f81beca7afabb3d2d395bd979607eda184622f7a
File upload issue using http::geturl in Tcl contain http-2.9 package |
| User & Date: | alakendu on 2019-07-10 10:24:29 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "http-2.9"
- is_private changed to: "0"
- login: "alakendu"
- priority changed to: "5 Medium"
- private_contact changed to: "66fb25d263737f92dfc9ab316118aa0eee953c02"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "alakendu"
- subsystem changed to: "29. http Package"
- title changed to:
File upload issue using http::geturl in Tcl contain http-2.9 package
- type changed to: "Bug"