summaryrefslogtreecommitdiff
path: root/lib/select.h
diff options
context:
space:
mode:
authorZdenek Pavlas <zpavlas@redhat.com>2013-03-11 14:57:07 +0100
committerKamil Dudka <kdudka@redhat.com>2013-03-12 10:58:20 +0100
commit57ccdfa8d2bb6275388223f4676cd623ebd01697 (patch)
tree2e36708a0905d011b78582090ec063ea0fbea440 /lib/select.h
parent491e026ccda0e60975fa6e2e9cf3ccca37e18f7b (diff)
downloadcurl-57ccdfa8d2bb6275388223f4676cd623ebd01697.tar.gz
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
Diffstat (limited to 'lib/select.h')
-rw-r--r--lib/select.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/select.h b/lib/select.h
index 00789bb89..c00afe166 100644
--- a/lib/select.h
+++ b/lib/select.h
@@ -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