Hi Dave,

Thanks for you help.

If I send a "Connection: close" with the httpHeaders, everything works as expected with no hang. In this case, by using using the logging feature in libURL, I could see that the response header have "connection: close" instead of "connection: keep-alive".

It looks like there are several places were libURL tests for the "Connection: close" header in the response, but I don't see it testing for a "keep-alive" header anywhere.

Should I log this as a bug?

Thanks!

David

use-livecode-requ...@lists.runrev.com wrote:
Message: 6
Date: Fri, 22 Apr 2011 20:15:52 +0100
From: Dave Cragg<dave.cr...@lacscentre.co.uk>
To: How to use LiveCode<use-livecode@lists.runrev.com>
Subject: Re: libURL hangs after getting response with keep-alive
        header
Message-ID:<7cdf3b9d-eef9-4a6e-bbb5-0f77eb14c...@lacscentre.co.uk>
Content-Type: text/plain; charset=us-ascii

David

As an after thought..

Does it help if you set the httpHeaders to "Connection: close"?

Dave


On 22 Apr 2011, at 20:00, David Beck wrote:

> > Before I report this as a bug, maybe somebody can shine some light on what is going on here. > > It looks like libURL hangs after getting a response with a "Connection: keep-alive" in it. It pretty much freeze up the entire IDE, except for the message box, which you can use to unfreeze everything in most cases by issuing the "resetall" command. > > Shouldn't it just treat it as a "Connection: close" header, if it does not support keeping connections alive? > > Also, it sounds like in HTTP1.1, the default is that all connections are kept alive, unless a "Connection: close" header is sent with the request. Therefore, shouldn't libURL be sending that "Connection: close" header, since it doesn't support keep-alive? > > Thanks in advance, > > David Beck >

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to