On Mar 25, 2009, at 5:34 AM, Jonathan Worthington wrote:

Hi,

This morning I have applied a patch sent in by bacek++ to get socket I/O in Parrot up and running again. I also did a port of that to Win32, based off the work by bacek and from the previous Win32 implementation.

I'm glad to have this, but there's probably a couple of things that should be done. I'm scribbling them here to get feedback and in hope that @other will pick them up. ;-)

1) Apparently it all works well on Linux-y systems, however there's an issue with Win32. When I run parrot examples/io/httpd.pir, it will serve pages, but the browser hangs without showing it after it has served the page. If I hit Esc in the browser (which I guess ends the connection), only then does it show the page. I have about zero socket programming experience, so I'm not sure where to start looking. Patches very welcome. This is ticket #497.

It might be a userspace buffering issue. Possibly, the server is keeping alive the connection for another request but failed to flush its output, and resetting the connection causes it to close the filehandle (flushing the output).

What happens if you telnet in and HEAD / HTTP/1.0?

Josh


_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev

Reply via email to