cURL / Mailing Lists / curl-library / Single Mail

curl-library

Timeout; x out of -1 bytes received

From: Daniel Walter <daniel.walter_at_helmundwalter.de>
Date: Mon, 18 Mar 2013 10:40:06 +0100

Hi folks,

i am using libcurl in my c/c++ projects for a while and I like it a lot.

In my latest project I have at least 2 threads. 1 thread performs many
multi actions. the other thread sometimes makes some normal easy calls.
Each thread uses its own easy handles. Nothing is shared between the
threads. But all requests go to the same server (e.g. www.amazon.de)!

Sometimes the easy actions don't finish well. I get an error like that:
"* Operation timed out after 10570 milliseconds with 59283 out of -1
bytes received"

This does not happen always.

In the easy handle I specify my own CURLOPT_WRITEFUNCTION and set
CURLOPT_TIMEOUT. If i dont set CURLOPT_TIMEOUT the easy action hangs
"forever".

Can anyone help me with that bevaiour?

I am using:
* linux 3.8.2-1~experimental.1 (Debian)
* gcc (Debian 4.7.2-5) 4.7.2
* libcurl version 7.29.0

Here is the complete verbose output:
* About to connect() to www.amazon.de port 80 (#264)
* Trying 176.32.108.185...
* Connected to www.amazon.de (176.32.108.185) port 80 (#264)
> GET
/gp/product/B0099AGY5W/ref=noref?ie=UTF8&m=A21TN7USOBHKH0&psc=1&s=ce-de
HTTP/1.1
Host: www.amazon.de
Accept: */*

< HTTP/1.1 200 OK
< Date: Mon, 18 Mar 2013 09:06:35 GMT
< Server: Server
< pragma: no-cache
< x-amz-id-1: 02ZENXV041QV6YVW9A1W
< p3p: policyref="http://www.amazon.de/w3c/p3p.xml",CP="CAO DSP LAW CUR
ADM IVAo IVDo CONo OTPo OUR DELi PUBi OTRi BUS PHY ONL UNI PUR FIN COM
NAV INT DEM CNT STA HEA PRE LOC GOV OTC "
< x-sap-pg: gps_or_nav_system_display_on_website
< cache-control: no-cache
< x-frame-options: SAMEORIGIN
< expires: -1
< x-amz-id-2:
9Mq0paXjHZ/OMv229xo0cPa8wEWMwTwKyQ3sM+xisnOw7JppTJL7PgPi9c/kxK+z
< Vary: Accept-Encoding,User-Agent
< Content-Type: text/html; charset=ISO-8859-15
< Set-cookie:
x-wl-uid=1d9wW7g9h2msxopkTvOFPoiCdhgH+RbVkUatosRlhGBGD73z0LbzCwp2DQi35Z/bAUhazT7lApfk=;
path=/; domain=.amazon.de; expires=Mon, 31-Dec-2035 23:00:01 GMT
< Set-cookie: session-id-time=2082754801l; path=/; domain=.amazon.de;
expires=Mon, 31-Dec-2035 23:00:01 GMT
< Set-cookie: session-id=280-0675710-7619066; path=/; domain=.amazon.de;
expires=Mon, 31-Dec-2035 23:00:01 GMT
< Transfer-Encoding: chunked
<
* Operation timed out after 10570 milliseconds with 59283 out of -1
bytes received
* Closing connection 264

Thanks in advance and best regards,
B.Sc. Daniel Walter

-- 
Helm & Walter IT-Solutions
Müglitztalstraße 63
D-01809 Dohna
Tel.: +49 (3529) 2348055
Mobile: +49 (151) 21240211
Email: daniel.walter_at_helmundwalter.de
WWW: https://www.helmundwalter.de
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-18