cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: persistent connections in multi interface

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 11 Aug 2011 22:17:28 +0200 (CEST)

On Thu, 11 Aug 2011, Yamin Zhou wrote:

> * Expire cleared
> * Connection #0 to host 172.24.3.139 left intact

That was the first request completed.

> * Re-using existing connection! (#0) with host 172.24.3.139
> * Connected to 172.24.3.139 (172.24.3.139) port 8086 (#0)

This is the second request, showing that it re-uses the previous connection.

> POST /wsd/services/ShService HTTP/1.1
> Host: 172.24.3.139:8086
> Accept: */*
> Connection: keep-alive
> Content-Type: application/soap+xml; charset=utf-8
> SOAPAction:""
> Content-Length: 2831
>
> * Connection died, retrying a fresh connect

For some reason (that most likely only can be seen in the server logs and/or
by capturing TCP network traffic) the connection died immediately before
anything was read. Then libcurl will close it, re-open and resend the request:

> * Closing connection #0
> * Issue another request to this URL: 'http://172.24.3.139:8086/wsd/services/ShService'
> * About to connect() to 172.24.3.139 port 8086 (#0)

...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-11