cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Release count-down!

From: Michael Wallner <mike_at_iworks.at>
Date: Fri, 01 Jun 2007 08:48:25 +0200

Daniel Stenberg wrote:
> On Thu, 31 May 2007, Michael Wallner wrote:
>
>> Hm... can I help in any way to get this
>> curl_multi_add_handle/socket_all() thingy sorted out?
>
> Sure, the same way like before: provide a test sample that repeats the
> problem at least somewhat reliably.

Uhm... is one out of three times reliably enough? The attached program hangs
sometimes if line 35 is being commented. The procedure used was:

mike_at_honeybadger:~/cvs/curl/docs/examples$ colorgcc -g `curl-config --cflags --libs` -Wl,-rpath,/usr/local/lib -levent -o load load.c
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
Added: 1000, Finished: 1000, Time: 674ms
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
Added: 1000, Finished: 1000, Time: 756ms
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
Added: 1000, Finished: 1000, Time: 692ms
mike_at_honeybadger:~/cvs/curl/docs/examples$ colorgcc -g `curl-config --cflags --libs` -Wl,-rpath,/usr/local/lib -levent -o load load.c
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
Added: 1000, Finished: 1000, Time: 533ms
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
Added: 1000, Finished: 1000, Time: 572ms
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
^C
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
Added: 1000, Finished: 1000, Time: 549ms
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
Added: 1000, Finished: 1000, Time: 551ms
mike_at_honeybadger:~/cvs/curl/docs/examples$ ./load 2>/dev/null
^C
mike_at_honeybadger:~/cvs/curl/docs/examples$

Note, that you should change the URL in the source file.

Thanks,

-- 
Michael

  • text/x-csrc attachment: load.c
Received on 2007-06-01