Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0

Request #3776 smtp connect timeout would be swell
Submitted: 2005-03-11 16:03 UTC
From: jcnorris at me3 dot com Assigned: jon
Status: Closed Package: Mail
PHP Version: 5.0.3 OS: Windoze
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-11 16:03 UTC] jcnorris at me3 dot com
Description: ------------ Using Mail 1.1.4 Line #158 of Mail/smtp.php reads if (PEAR::isError($smtp->connect())) { If smtp server is unavailable, my code hangs here until script timeout. For my use, I have hard-coded a timeout of 10 seconds thusly: if (PEAR::isError($smtp->connect(10))) { I propose an additional smtp param called 'timeout' which defaults to NULL

Comments

 [2005-03-19 19:38 UTC] jon
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.