]> source.dussan.org Git - nextcloud-server.git/commit
cURL does not honour default_socket_timeout
authorEvgeni Golov <evgeni@golov.de>
Fri, 31 May 2013 16:21:31 +0000 (18:21 +0200)
committerEvgeni Golov <evgeni@golov.de>
Mon, 30 Sep 2013 05:56:54 +0000 (07:56 +0200)
commitb6fc143074ae55bc6f9732d825571681f88f46ed
treef4ae61f5052df7e21047857c4d20f03b70195eb2
parent9ba0edcadb9aa55d44bbfc834f9b25c9f21a0c2e
cURL does not honour default_socket_timeout

SabreDAV uses cURL for the requests and as this does not honour
default_socket_timeout, setting it is useless and confusing as
people will expect the request to timeout faster than it actually
will do.

One has to use
 curl_setopt($curl, CURLOPT_TIMEOUT, x)
or
 curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, x)
but there is currently no way to make SabreDAV pass this to cURL.
lib/util.php