curl-library
Re: Is it a valid behavior?
Date: Fri, 21 Jan 2011 22:46:04 +0100 (CET)
On Fri, 21 Jan 2011, amit paliwal wrote:
>> Since you're not really speaking HTTP when you send data without headers or
>> status-lnie, libcurl will assume you speak HTTP 1.0 and without any headers
>> it will assume the server will close the connection to signal end of data.
>> And until it does so, it will wait.
>>
> *Reply:* Thanks for the inputs Daniel, so as you said, it will be waiting
> for Server to send Connection:Close token???
No. It will quite literally wait for the connection to be closed. Killed.
Stopped. Wiped out.
> in my sequence diagram rather than sending HTTP OK Response with
> "Connection:KeepAlive" if I send HTTP OK Response with "Connection:Close"
> token, will it come out of the waiting state?????? If not, then how will it
> wait for the connection close from the server.
Your server should send proper HTTP back when libcurl sends a HTTP request.
Preferably a HTTP 1.1 compliant response, as then libcurl can stop receveing
nicely without the connection having to get closed.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-01-21