mirror of
https://github.com/curl/curl.git
synced 2026-07-31 20:20:13 +03:00
curl_global_init: accept the CURL_GLOBAL_ACK_EINTR flag
The flag can be used in pycurl-based applications where using the multi interface would not be acceptable because of the performance lost caused by implementing the select() loop in python. Bug: http://curl.haxx.se/bug/view.cgi?id=1168 Downstream Bug: https://bugzilla.redhat.com/919127
This commit is contained in:
parent
491e026ccd
commit
57ccdfa8d2
7 changed files with 18 additions and 15 deletions
|
|
@ -81,6 +81,12 @@ int Curl_socket_check(curl_socket_t readfd, curl_socket_t readfd2,
|
|||
|
||||
int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
|
||||
|
||||
/* On non-DOS and non-Winsock platforms, when Curl_ack_eintr is set,
|
||||
* EINTR condition is honored and function might exit early without
|
||||
* awaiting full timeout. Otherwise EINTR will be ignored and full
|
||||
* timeout will elapse. */
|
||||
extern int Curl_ack_eintr;
|
||||
|
||||
int Curl_wait_ms(int timeout_ms);
|
||||
|
||||
#ifdef TPF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue