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

Fixed in CS-17026

I set fix version. I find this at SVN r17118 in 1.9 branch.