Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e52776e6dcbff70d2f477385045042342956e101
Ticket: 211d71365f73288376f2db8535b4f20572197906
Tcl 8.5.16 for Windows cannot download a large file via http 2.7.13 package
User & Date: anonymous on 2014-10-17 14:53:07
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    I can reproduce this bug with the following simple code.
    
    The size of the sample file is 4,051,200 bytes.
    
    <verbatim>
    # get_access_log.tcl
    package require http
    set url "http://yusuke-blog.info/wp-content/uploads/2014/10/access_log_4mb.txt"
    set ch [open access_log_4mb.txt w]
    http::geturl $url -channel $ch -binary 1
    close $ch
    </verbatim>
    
    (Running in ActiveTcl 8.5.16 or self-compiled version with MinGW)
    <verbatim>
    >tclsh85 get_access_log.tcl
    => error reading "sock548": resource temporarily unavailable
        while executing
    "http::geturl $url -channel $ch"
        (file "get_access_log3.tcl" line 4)
    </verbatim>
    
    The size of the partially downloaded data is about several kilobytes.
    
    This error does not happen in Tcl 8.5.15 and Tcl 8.6.2.
    
    I guess this is not the issue of http package itself but a socket related issue.
    
    (Environment)<br>
    Windows 7 Professional SP1 64bit (Japanese)<br>
    ActiveTcl 8.5.16 32bit<br>
    Tcl/Tk 8.5.16 32bit (Self-compiled with MinGW)
    
  5. foundin changed to: "8.5.16"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "739ee75779220cf80faa6227c8075ca6e4243280"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "69. Other"
  15. title changed to:
    Tcl 8.5.16 for Windows cannot download a large file via http 2.7.13 package
    
  16. type changed to: "Support"