From: Giorgio Valoti on 17 Jun 2010 11:58 On 2010-06-17 17:36:11 +0200, tom.rmadilo said: > […] > > Until you use something like telnet, or Tcl's socket to try a raw > request, and show us what you typed and the full result, it is hard to > help much further. From what I understand, it isn't hanging, it is > just returning some headers. Telnet will maybe show some data getting > sent. With curl I don't see any response header: C:\Documents and Settings\admin\Desktop\curl-7.19.5>curl -v http://localhost:801 5/images/Space.gif * About to connect() to localhost port 8015 (#0) * Trying 127.0.0.1... connected * Connected to localhost (127.0.0.1) port 8015 (#0) > GET /images/Space.gif HTTP/1.1 > User-Agent: curl/7.19.5 (i586-pc-mingw32msvc) libcurl/7.19.5 zlib/1.2.3 > Host: localhost:8015 > Accept: */* > But, as you said, maybe with telnet I could get some more details? I'll try it as soon as I can get back to my dev machine. -- Giorgio Valoti
From: Kroc on 17 Jun 2010 13:45 On 17 juin, 17:53, Giorgio Valoti <giorgi...(a)me.com> wrote: > Have you tried it under a Window box? It doesn't work: Error processing main startup script "Z:\Downloads\tclhttpd.kit\bin \httpdthread.tcl". couldn't open "/tmp/tclhttpd.default": no such file or directory while executing "open $Config(AuthDefaultFile) w 0660" /tmp/tclhttpd.default doesn't look like a valid path on XP. -- David Zolli
From: Giorgio Valoti on 18 Jun 2010 02:07 On 2010-06-17 19:45:03 +0200, Kroc said: > On 17 juin, 17:53, Giorgio Valoti <giorgi...(a)me.com> wrote: >> Have you tried it under a Window box? > It doesn't work: > > Error processing main startup script "Z:\Downloads\tclhttpd.kit\bin > \httpdthread.tcl". > couldn't open "/tmp/tclhttpd.default": no such file or directory > while executing > "open $Config(AuthDefaultFile) w 0660" > > /tmp/tclhttpd.default doesn't look like a valid path on XP. Yes, I've patched it to look for TMP or TEMP environment variables, before using /tmp. -- Giorgio Valoti
From: Giorgio Valoti on 18 Jun 2010 05:22 On 2010-06-17 17:58:49 +0200, Giorgio Valoti said: > On 2010-06-17 17:36:11 +0200, tom.rmadilo said: > >> […] >> >> Until you use something like telnet, or Tcl's socket to try a raw >> request, and show us what you typed and the full result, it is hard to >> help much further. From what I understand, it isn't hanging, it is >> just returning some headers. Telnet will maybe show some data getting >> sent. > > With curl I don't see any response header: > > C:\Documents and Settings\admin\Desktop\curl-7.19.5>curl -v > http://localhost:801 > 5/images/Space.gif > * About to connect() to localhost port 8015 (#0) > * Trying 127.0.0.1... connected > * Connected to localhost (127.0.0.1) port 8015 (#0) >> GET /images/Space.gif HTTP/1.1 >> User-Agent: curl/7.19.5 (i586-pc-mingw32msvc) libcurl/7.19.5 zlib/1.2.3 >> Host: localhost:8015 >> Accept: */* I have reduced the problem to line (proc Httpd_ReturnFile on httpd.tcl): fcopy $in $sock -command [list HttpdCopyDone $in $sock $close] which copies the contents of the file to the socket. For some reasons it blocks when some particular files are requested on Windows XP and tclhttpd serves the file from a starkit. Any clues? -- Giorgio Valoti
From: Giorgio Valoti on 18 Jun 2010 10:14
On 2010-06-16 17:37:25 +0200, Giorgio Valoti said: > Hi all, > I'm getting a very weird bug(?) with tclhttpd. > > On Mac OS X, I've unwrapped the latest tclhttpd starkit distribution > and replaced the htdocs directory with mine; wrapped everything and > copied it onto a Win XP box. If I try to download a .swf file nothing > happens: tclhttp is still responsive but the request just hangs there. > However, if I start it with the -docRoot flag everything works as > expected! > > On Mac OS X works correctly, either using the starkit docroot or an > external one. Every other file type (text, movies) are served correctly > regardless the OS and the docroot used. > > I'm banging my head against the wall... Does anyone have any suggestion? > > Thank you in advance! File a bug: #3018050 -- Giorgio Valoti |