[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Get-pure-port aborts giving error 10054
Try inserting
,(make-string 200 #\return)
into your Web page, and see if it finishes loading.
-- Paul
> -----Original Message-----
> From: owner-plt-scheme@fast.cs.utah.edu [mailto:owner-plt-
> scheme@fast.cs.utah.edu] On Behalf Of MichaelL@frogware.com
> Sent: Monday, April 15, 2002 11:36 AM
> To: Matthew Flatt
> Cc: plt-scheme@fast.cs.utah.edu
> Subject: Re: Get-pure-port aborts giving error 10054
>
>
> FYI, I noticed that on my W2K machine using IE 5.5 against the PLT web
> server and the sample web pages, some pages take a *long* time to
> "complete" downloading. Really, they don't complete--IE just times
> out.
> (The web page is loaded, but the icon keeps dancing for a while.) The
> dev
> branch had the same problem.
>
> Netscape 4.7 and Opera don't have this problem. They also don't have
> the
> market share. :-)
>
> This fix didn't patch *that* problem... but it looks like a similar
> kind of
> protocol issue. (I don't remember seeing this kind of thing with any
> of the
> other web servers on this machine.)
>
>
>
>
> Matthew Flatt
> <mflatt@cs.utah.edu> To: Jens Axel
> Søgaard <jensaxel@soegaard.net>
> Sent by: cc: <plt-
> scheme@fast.cs.utah.edu>
> owner-plt-scheme@fast.c Subject: Re:
> Get-pure-port aborts giving error 10054
> s.utah.edu
>
>
> 04/15/2002 10:30 AM
>
>
>
>
>
>
> At Sun, 14 Apr 2002 10:53:19 +0200, Jens_Axel_Søgaard wrote:
> > The following expression aborts my program.
> >
> > > (get-pure-port (string->url
> "http://www.tedgoff.com/mb/images/today.gif
> "))
> > tcp-read: error reading (Unknown error; errno=10054)
>
> Looks like the URL library's HTTP client protocol has always been
> broken. It's using #\newline for end-of-line in the HTTP request
> header, instead of a #\return #\newline sequence. (Apparently, most
> HTTP servers are forgiving, but not the one at www.tedgeoff.com.)
>
> Fixed and exp-tagged in CVS.
>
> To repair 200alpha12, go to plt/collects/net/url-unit.ss and replace
> each of the two instances of
> (newline client->server)
> with
> (display "\r\n" client->server)
>
> Matthew
>
>
>