[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Hang problem with the http egg.
From: |
Graham Fawcett |
Subject: |
Re: [Chicken-users] Hang problem with the http egg. |
Date: |
Wed, 12 Mar 2008 11:32:37 -0400 |
On Wed, Mar 12, 2008 at 11:22 AM, Robin Lee Powell
<address@hidden> wrote:
> > Could it be that the body is the string "OK,585562" with no
> > terminating newline, and read-line hangs on it?
>
> Possible.
> > If that's really the issue, you could try using read-lines or
> > read-all.>
> But if so, it's still an http egg bug, because http:GET hangs on it
> too.
The blocking makes sense: if you ask a port to read an indeterminately
long string, it will eventually block until the connection is closed.
Perhaps get the Content-Length header from the response, and
(read-string n) where n is the Content-Length?
Not saying it isn't an http-egg bug, just that the symptom of the
problem seems logical from a network-socket perspective.
Graham
Graham
- [Chicken-users] Hang problem with the http egg., Robin Lee Powell, 2008/03/12
- Re: [Chicken-users] Hang problem with the http egg., Tobia Conforto, 2008/03/12
- Re: [Chicken-users] Hang problem with the http egg., Robin Lee Powell, 2008/03/12
- Re: [Chicken-users] Hang problem with the http egg.,
Graham Fawcett <=
- Re: [Chicken-users] Hang problem with the http egg., Robin Lee Powell, 2008/03/12
- Re: [Chicken-users] Hang problem with the http egg., Robin Lee Powell, 2008/03/12
- Re: [Chicken-users] Hang problem with the http egg., Peter Bex, 2008/03/12
- Re: [Chicken-users] Hang problem with the http egg., Robin Lee Powell, 2008/03/13
- Re: [Chicken-users] Hang problem with the http egg., Robin Lee Powell, 2008/03/13
- Re: [Chicken-users] Hang problem with the http egg., Peter Bex, 2008/03/13
- Re: [Chicken-users] Hang problem with the http egg., Robin Lee Powell, 2008/03/13
- Re: [Chicken-users] Hang problem with the http egg., Robin Lee Powell, 2008/03/12
- Re: [Chicken-users] Hang problem with the http egg., Hans Bulfone, 2008/03/12
- Re: [Chicken-users] Hang problem with the http egg., Graham Fawcett, 2008/03/12