X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=9ccda2ca8e859ec83f668fc141b188097933dbf3;hp=6c7df822c189b0917a0671e89fde4c16256c7e3a;hb=976c6c8c58c93c4ab74e9c23e1cf5b31b2b1bd78;hpb=fee48a4d3353d6b37dfe0e40377ec0fe0c6e9a61 diff --git a/http_request_api.c b/http_request_api.c index 6c7df82..9ccda2c 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -377,8 +377,10 @@ PHP_HTTP_API void _http_request_defaults(http_request *request) HTTP_CURL_OPT(CURLOPT_LOW_SPEED_LIMIT, 0L); HTTP_CURL_OPT(CURLOPT_LOW_SPEED_TIME, 0L); #if HTTP_CURL_VERSION(7,15,5) + /* LFS weirdance HTTP_CURL_OPT(CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t) 0); HTTP_CURL_OPT(CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t) 0); + */ #endif /* crashes HTTP_CURL_OPT(CURLOPT_MAXCONNECTS, 5L); */ @@ -516,12 +518,14 @@ PHP_HTTP_API STATUS _http_request_prepare(http_request *request, HashTable *opti HTTP_CURL_OPT(CURLOPT_LOW_SPEED_TIME, Z_LVAL_P(zoption)); } #if HTTP_CURL_VERSION(7,15,5) + /* LSF weirdance if ((zoption = http_request_option(request, options, "max_send_speed", IS_LONG))) { HTTP_CURL_OPT(CURLOPT_MAX_SEND_SPEED_LARGE, (curl_off_t) Z_LVAL_P(zoption)); } if ((zoption = http_request_option(request, options, "max_recv_speed", IS_LONG))) { HTTP_CURL_OPT(CURLOPT_MAX_RECV_SPEED_LARGE, (curl_off_t) Z_LVAL_P(zoption)); } + */ #endif /* crashes if ((zoption = http_request_option(request, options, "maxconnects", IS_LONG))) { @@ -907,7 +911,7 @@ retry: case CURLE_RECV_ERROR: case CURLE_SSL_ENGINE_INITFAILED: case CURLE_LOGIN_DENIED: - if (request->_retry.delay) { + if (request->_retry.delay >= HTTP_DIFFSEC) { http_sleep(request->_retry.delay); } goto retry;