Parrot Socket I/O - request for help

Joshua Juran jjuran at gmail.com
Wed Mar 25 13:09:27 UTC 2009


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




More information about the parrot-dev mailing list