Mantis - Quercus
Viewing Issue Advanced Details
4377 major always 02-07-11 09:01 06-23-12 11:28
xerafin  
nam  
normal  
closed 4.0.14  
no change required  
none    
none  
0004377: CurlResource socket timeouts should pull initial values from JVM system properties
By default, CurlResource is using infinite timeouts for socket connect and read timeouts. This is a severe problem for any hosted environment since threads blocking forever result eventually in a failure of the hosting environment. CurlResource should use non-infinite timeouts or provide a way to specify a non-infinite timeout value.
Another option is to check for the system properties sun.net.client.defaultConnectTimeout and sun.net.client.defaultReadTimeout as per http://download.oracle.com/javase/1.4.2/docs/guide/net/properties.html [^]

Notes
(0005942)
nam   
06-23-12 11:28   
If the user does not specify a timeout via setopt(), then curl will not set the Java timeout. This implies that the connection will use the default timeout, whatever that may be.