Overview
| Artifact ID: | 0177255f954e26a4feb4aa3a0ec38560ee9b4b44 |
|---|---|
| Ticket: | ed29c4da21f4c0a7858a0f5ae4aae20dd42fc818
http::get -channel broken on MacOS |
| User & Date: | anonymous on 2014-10-09 20:37:25 |
Changes
- 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 $outname w] set token [::http::geturl $url -channel $out] close $out package require http 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 - icomment:
I see the problem on every site I have tried (I used APOD as a public place to get a large image). I'm pretty sure the error is in writing the file. based on error messages I see when running similar code in Python using Tkinter (which is where I first ran into the problem -- I primarily code Python, hence some of the clumsiness in my code example).
- login: "anonymous"
- mimetype: "text/plain"