chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] http-client doesn't handle closed persistent connect


From: Thomas Hintz
Subject: Re: [Chicken-users] http-client doesn't handle closed persistent connections
Date: Sat, 29 Jan 2011 11:03:42 -0500

I also have experienced weird behavior related to connections.

On my system, about 85% of the time, the second usage of with-input-from-request results in the call failing. In my web app, which utilizes http-client to make REST calls, I've been putting mutexes around my http-client code and closing the connections after every call. This always works, but not closing the connection after every call, nearly always fails.

I could give you a specific test case, but on my development box, it pretty much always fails for every second usage of with-input-from-request.

Thanks,

Thomas Hintz

On Sat, Jan 29, 2011 at 10:04 AM, Peter Bex <address@hidden> wrote:
On Sat, Jan 29, 2011 at 11:57:27PM +0900, Daishi Kato wrote:
> After a quick look in the code, one suspect is that port-closed?
> can't check a closed port, but not really sure.

If that's the case, it's a bug in Chicken because http-client simply
used the definition from library.scm, and provides its own copy if we're
on an older Chicken that doesn't provide this procedure.

> Or, it doesn't raise an exception when it detects closed connection.
> I'll work more tomorrow and try to make a test case,
> but let me know if you already know this issue.

I have observed "weird' behaviours on closed connections before,
but always in error cases only, and I wasn't able to debug that,
so I'm not sure if that's the same issue you're reporting.

A test case would be welcome.

Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                       -- Donald Knuth

_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]