Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. 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
    
  5. foundin changed to: "http-2.9"
  6. is_private changed to: "0"
  7. login: "alakendu"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "66fb25d263737f92dfc9ab316118aa0eee953c02"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "alakendu"
  14. subsystem changed to: "29. http Package"
  15. title changed to:
    File upload issue using http::geturl in Tcl contain http-2.9 package
    
  16. type changed to: "Bug"