cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Persistent HTTPS connections

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 28 Jan 2007 23:55:07 +0100 (CET)

On Sun, 28 Jan 2007, Andreas Rieke wrote:

> After getting the main thing (persistent connections) running, I have seen a
> minor inconsistency. cURL seems not to recognize if the server sents a FIN
> because it wants to close the connection for whatever reason. cURL just
> ignores the FIN, tries to reuse the connection, fails and builds up a new
> connection. Here is the tcpdump showing that:

[...]

> Since a new connection is built up, it does not really matter that the FIN
> is ignored, and if you decide to ignore that, it is ok with me. However, I
> would more like cURL to close the connection, remove it from the used
> connection pool and simply build up a new connection after the FIN,

libcurl doesn't close anything because it hasn't detected that the connection
is closed. Can you show us what response headers you got in this response?

If you can fix libcurl to do what you say, then by all means please show us.
I'd appreciate it.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-01-29