Fetching URLs hangs indefinitely on Windows?

Joshua ben Jore twists at gmail.com
Mon Jan 22 17:50:50 CET 2007


On 1/11/07, Wolfgang Meyer <Wolfgang.Meyer at gmx.net> wrote:
> Hi Joshua,
>
> I tried a simplified version of your code in the programming API and
> catched the following exception:
>
> error(url(open 'http://perlmonks.org/?node_id=207304') debug:d(info:unit
> stack:[entry('PC':10834264 column:6 data:<P/3 Get>
> file:'f:/cygwin/home/Administrator/Mozart/1-3-2/uff/mozart/share/lib/init/Resolve.oz'
> kind:call line:394 origin:procedureFrame vars:v('G':nil 'Y':nil))]))

Interestingly, I've found that writing my HTTP request as ordinary
socket code worked. That is, when I instantiated my new Open.socket
object and used the connect method. Using the client method just
throws an exception. I'll have to figure out how to get the error back
out now that it's visible in my oz debugger.

I just thought I'd share.

   Client = {New Open.socket init}
   % {Client client(host:"perlmonks.org" port:80)} % hangs here
   {Client connect(host:"perlmonks.org" port:80)}
   {Client write(vs:"GET /?node_id=207304 HTTP/1.0\r\n")}
   {Client write(vs:"\r\n")}
   {Client read(list:{Browser.browse} size:all)}

Josh


More information about the mozart-users mailing list