cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: Threaded resolver breaks MOC

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 18 May 2011 09:30:49 +0200 (CEST)

On Tue, 17 May 2011, Dave Reisner wrote:

> Judging by the timestamps and our inability to reproduce it, I have to
> assume that the SIGTERM was sent to mocp by the user who posted the log.

I'd second that guess.

I downloaded moc 2.4.4 and I found the select() call on line 359 in io_curl.c.
It clearly does not have a timeout and is the cause of this failure. I would
strongly suggest that the code would use curl_multi_timeout() or similar to
figure out the max time to wait. This bug is clearly due to moc making
assumptions about the curl API that isn't always true.

I wrote up a quick patch (see attachment) to show what I mean. I didn't try
it!

I've posted this in the moc forum for this issue too, but as you said it seems
mostly dead there.

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2011-05-18

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET