- May 24, 2011
-
-
Yang Tse authored
Fix compiler warning: variable was set but never used Fix compiler warning: clobber ignored
-
- Apr 27, 2011
-
-
Daniel Stenberg authored
By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.
-
- Mar 24, 2010
-
-
Daniel Stenberg authored
-
- Oct 27, 2009
-
-
Yang Tse authored
-
- Sep 15, 2009
-
-
Yang Tse authored
POLLIN, and sets POLLERR without setting POLLIN and POLLOUT. In some libcurl code execution paths this could trigger busy wait loops with high CPU usage until a timeout condition aborted the loop. This fix for Curl_poll adresses the above in a libcurl-wide mode.
-
- May 26, 2008
-
-
Daniel Stenberg authored
-
- May 09, 2008
-
-
Yang Tse authored
This also implies the removal of the winmm.lib dependency for WIN32.
-
- Mar 06, 2008
-
-
Yang Tse authored
select/poll calls will only be retried upon EINTR failures as it previously was in lib/select.c revision 1.29 In this way Curl_socket_ready() and Curl_poll() will again fail on any select/poll errors different than EINTR.
-
- Nov 05, 2007
-
-
Daniel Stenberg authored
consistency
-
- Oct 03, 2007
- May 31, 2007
-
-
Daniel Stenberg authored
to find that it crashed miserably, and this was due to some select()isms left in the code. This was due to API restrictions in c-ares 1.3.x, but with the upcoming c-ares 1.4.0 this is no longer the case so now libcurl runs much better with c-ares and the multi interface with > 1024 file descriptors in use.
-
- May 26, 2007
-
-
Daniel Stenberg authored
I also switched from calloc() to malloc() as a minor performance boost since the rest of the code fills in the structs fine anyway - and they must for the case when we use the stack-based auto variable array instead of the allocated one. I made the loop filling in poll_fds[] break when poll_nfds is reached as a minor speed improvement.
-
- Apr 20, 2007
-
-
Yang Tse authored
'pending_ms' may be used uninitialized in this function
-
Yang Tse authored
Curl_socket_ready(), Curl_poll() and Curl_select() when these are called with a zero timeout or a timeout value indicating a blocking call should be performed. These unnecessary calls to gettimeofday() got introduced in 7.16.2 when fixing 'timeout would restart when signal caught while awaiting socket events' on 20 March 2007. - Move some loop breaking logic from the while clause into the loop, avoiding compiler warning 'assignment within conditional expression'
-
- Apr 19, 2007
-
-
Daniel Stenberg authored
-
- Apr 16, 2007
-
-
Daniel Stenberg authored
function that deprecates the curl_multi_socket() function. Using the new function the application tell libcurl what action that was found in the socket that it passes in. This gives a significant performance boost as it allows libcurl to avoid a call to poll()/select() for every call to curl_multi_socket*().
-
- Apr 04, 2007
-
-
Yang Tse authored
-
- Apr 03, 2007
-
-
Yang Tse authored
-
- Apr 02, 2007
-
-
Yang Tse authored
-
- Mar 29, 2007
-
-
Yang Tse authored
-
- Mar 28, 2007
-
-
Yang Tse authored
to complete with no delay and actually find out what happened with the socket. As well as detection of socket send()able condition. This also allows removal of a Cygwin specific block of code.
-
- Mar 27, 2007
- Mar 26, 2007
-
-
Yang Tse authored
-
- Mar 22, 2007
-
-
Yang Tse authored
For completeness sake, wait_ms() might also get interrupted when experimental CURL_ACKNOWLEDGE_EINTR is defined.
-
- Mar 21, 2007
-
-
Yang Tse authored
-
- Mar 20, 2007
-
-
Yang Tse authored
or Curl_poll() with a non-zero timeout both functions would restart the specified timeout. This could even lead to the extreme case that if a signal arrived with a frecuency lower to the specified timeout neither function would ever exit. Added experimental symbol definition check CURL_ACKNOWLEDGE_EINTR in Curl_select() and Curl_poll(). When compiled with CURL_ACKNOWLEDGE_EINTR defined both functions will return as soon as a signal is caught. Use it at your own risk, all calls to these functions in the library should be revisited and checked before fully supporting this feature.
-
- Mar 18, 2007
- Mar 11, 2007
-
- Mar 10, 2007
-
-
Daniel Stenberg authored
1) the progress callback gets called more frequently (at times) 2) libcurl *might* call the callback when it receives a signal
-
- Feb 26, 2007
-
-
Gisle Vanem authored
since they're already included through "setup.h".
-
- Feb 16, 2007
-
-
Yang Tse authored
-
- Jan 05, 2007
-
-
Gisle Vanem authored
-
- Jan 02, 2007
-
-
Daniel Stenberg authored
(http://curl.haxx.se/bug/view.cgi?id=1603712) (known bug #36) --limit-rate (CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_RECV_SPEED_LARGE) are broken on Windows (since 7.16.0, but that's when they were introduced as previous to that the limiting logic was made in the application only and not in the library). It was actually also broken on select()-based systems (as apposed to poll()) but we haven't had any such reports. We now use select(), Sleep() or delay() properly to sleep a while without waiting for anything input or output when the rate limiting is activated with the easy interface.
-
- Dec 05, 2006
-
-
Daniel Stenberg authored
HTTP upload was disconnected: "What appears to be happening is that my system (Linux 2.6.17 and 2.6.13) is setting *only* POLLHUP on poll() when the conditions in my previous mail occur. As you can see, select.c:Curl_select() does not check for POLLHUP. So basically what was happening, is poll() was returning immediately (with POLLHUP set), but when Curl_select() looked at the bits, neither POLLERR or POLLOUT was set. This still caused Curl_readwrite() to be called, which quickly returned. Then the transfer() loop kept continuing at full speed forever."
-
- Oct 18, 2006
-
-
Yang Tse authored
to verify winsock API availability.
-
- Oct 09, 2006
-
-
Yang Tse authored
In this way 304 tests out of 304 reported OK.
-
- Sep 24, 2006
-
-
Daniel Stenberg authored
Vista (_WIN32_WINNT >= 0x0600)
-