Home » Mail » Mail » Bug #3776
smtp connect timeout would be swell
Details
| 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 | |
| PHP Version | 5.0.3 |
| OS | Windoze |
| Roadmaps | (Not assigned) |
Comments
[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