ZF-7309: Read timeout not properly handled in Zend_Http_Client_Adapter_Socket

Issue Type: Bug Created: 2009-07-19T09:28:49.000+0000 Last Updated: 2009-11-17T20:55:15.000+0000 Status: Resolved Fix version(s): - 1.9.0 (31/Jul/09)

Reporter: Shahar Evron (shahar) Assignee: Shahar Evron (shahar) Tags: - Zend_Http_Client

Related issues: Attachments:


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.


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.