cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: problems with timeout catching

From: Jeff Pohlmeyer <yetanothergeek_at_yahoo.com>
Date: Mon, 5 Jan 2004 22:07:57 -0800 (PST)

> I have a problem with libcurl and timeouts in a multithreaded application.
> My problem is that sometimes a easyhandle seems not to catch the timeout
> (or the timeout is not sent to it ?) and I end up with a thread blocked,
> that never returns from the curl_easy_perform if the server is too slow,
> do not relpy or the request is lost in the network's deep void...
> no timeout, no errors. This problem seems to happen only when the load is
> heavy and many handles are running simultaneously.
> Is there a known problem with timeouts and multithreaded applications
> (using CURLOPT_NOSIGNAL) ?

Surprised that nobody has responded to this. I certainly don't have an answer,
but I will say that I have seen what might be a similar problem with a little
web browser I wrote using libcurl and Gtk-HTML. I gave up trying to track it
down because the problem is so intermittent, sometimes it takes an hour or so
of "surfing" before the program hangs, and even then all gdb tells me is that
I am in select(). If anyone wants to check it out, the source code is here:
  http://houston.quik.com/~jkp/curlwb/curlwb.tar.gz

I googled around a little and stumbled across this, but I don't know if
it is related:
  http://www.ussg.iu.edu/hypermail/linux/kernel/0304.0/1563.html
( One thread closes the file descriptor while another is waiting on data? )

Someone else also reported something similar using libcurl on Windows:
  http://curl.haxx.se/mail/lib-2003-09/0126.html

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2004-01-06