ZF-7309: Read timeout not properly handled in Zend_Http_Client_Adapter_Socket
Description
The socket adapter allows one to set a timeout, which affects both the connection and the reading of data from the server. Currently, if a timeout occurs during read, there are no checks to handle it and no exception is thrown. In fact, what will probably happen in case of a slow running script on the server side is you'll get the Client to wait twice the time of the timeout (because there are at least two read attempts) and then a Zend_Http_Response exception is thrown.
Instead, a Zend_Http_Client_Adapter_Exception should be thrown, indicating a timeout.
Comments
Posted by Shahar Evron (shahar) on 2009-07-24T02:11:07.000+0000
Fixed in CS-17026
Posted by Satoru Yoshida (satoruyoshida) on 2009-11-17T20:55:15.000+0000
I set fix version. I find this at SVN r17118 in 1.9 branch.