curl-library
running_handles: less than zero ?
Date: Thu, 5 Oct 2006 03:21:56 -0500
I noticed when running that "hiperfifo" thing, I sometimes see
the running_handles value set by curl_multi_socket() to
something below zero ( which seems like it would be impossible.)
When I rebuild libcurl with --enable-debug, and set CURLOPT_VERBOSE=1
I see some lines like this:
* STATE: COMPLETED => COMPLETED handle 0x84ee354; (connection #-1)
* STATE: COMPLETED => COMPLETED handle 0x84e992c; (connection #-1)
* STATE: COMPLETED => COMPLETED handle 0x84dc724; (connection #-1)
- That's coming from the multistate() procedure in multi.h, which
also does this:
if(state == CURLM_STATE_COMPLETED)
easy->easy_handle->multi->num_alive--;
For the case where the previous state was already CURLM_STATE_COMPLETED,
should num_alive still get decreased?
- Jeff
Received on 2006-10-05