cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Threaded resolver breaks MOC

From: Dave Reisner <d_at_falconindy.com>
Date: Wed, 18 May 2011 08:45:11 -0400

On Wed, May 18, 2011 at 09:30:49AM +0200, Daniel Stenberg wrote:
> 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.
>

And to follow up: aside from the typo, the patch works! Arch's MOC users
rejoice!

Sincerely,
Dave

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