cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_perform hangs in poll() when other side closes connection

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 11 Aug 2014 14:13:08 +0200 (CEST)

On Tue, 5 Aug 2014, Dominic Weinberger wrote:

> first of all, I am using libcurl version 7.32.0 on 64bit Ubuntu 12.04 LTS
> (precise)

> I have the problem that from time to time I cannot get out of
> curl_easy_perform, when the server that I am sending data to closes the
> connection. According to gdb curl_easy_perform is stuck in poll() while the
> server is stuck in select().

Hm, I don't recognize this problem. Can you check with the latest version and
see if the problem remains?

> Trace on client (curl):
>
> #0 0x00007f6bb2bc8a43 in __GI___poll (fds=<optimized out>, nfds=<optimized
> out>, timeout=<optimized out>)
> at ../sysdeps/unix/sysv/linux/poll.c:87
> 87 in ../sysdeps/unix/sysv/linux/poll.c
> (gdb) bt
> #0 0x00007f6bb2bc8a43 in __GI___poll (fds=<optimized out>, nfds=<optimized
> out>, timeout=<optimized out>)
> at ../sysdeps/unix/sysv/linux/poll.c:87
> #1 0x00007f6bb22786d4 in ?? () from
> /usr/lib/x86_64-linux-gnu/libcurl-nss.so.4

This will also look much friendlier and reveal more details if you'd build a
version of libcurl with -g without optimization.

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