Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2583c8ee984f14de2a04fa916e226a2399ee9ee0
Ticket: ed29c4da21f4c0a7858a0f5ae4aae20dd42fc818
http::get -channel broken on MacOS
User & Date: anonymous on 2014-10-09 19:29:48
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    The command http::geturl -channel is broken on MacOS 10.9.5 (and likely other versions). Transfers fail while writing to the channel with "resource temporarily unavailable". Transfers seem to work if -channel not specified. Here is an example:
    
    package require http
    
    set outname "saturn.jpg"
    set url "http://apod.nasa.gov/apod/image/1409/saturnequinox_cassini_7227.jpg"
    set out [open "temp" w]
    set token [::http::geturl $url -channel $out]
    close $out
    package require http
    
    set outname "saturn.jpg"
    set url "http://apod.nasa.gov/apod/image/1409/saturnequinox_cassini_7227.jpg"
    set out [open "temp" w]
    set token [::http::geturl $url -channel $out]
    close $out
    puts "done"
    
    On MacOS with ActiveState Tcl 8.5.16 I see:
    Error in startup script: error reading "sock8": resource temporarily unavailable
        while executing
    "::http::geturl $url -channel $out"
        invoked from within
    "set token [::http::geturl $url -channel $out]"
        (file "tcl http example.tcl" line 6)
    localhost$ wish tcl\ http\ example.tcl 
    Error in startup script: error reading "sock8": resource temporarily unavailable
        while executing
    "::http::geturl $url -channel $out"
        invoked from within
    "set token [::http::geturl $url -channel $out]"
        (file "tcl http example.tcl" line 6)
    
  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: "a7673d7774a7264840c8898b901228c171b16b73"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "http::get -channel broken on MacOS"
  16. type changed to: "Bug"