|
|
| |
1. Time Out Doesnt Work |
|
Reply |
|
|
 Seb Clark | 2007-11-07 17:08:07 |
The email validation keeps stalling. For example using: test@ltolhurst.orangehome.co.uk it connects to the remote server but doesnt send any data or receive any and also doesnt time out.
I have tried additional timeouts: set_time_limit(10); and added stream_set_timeout($connection,5,0); to the code but nothing makes it timeout. |
| |
2. Re: Time Out Doesnt Work |
|
Reply |
|
|
 Manuel Lemos | 2007-11-07 19:33:51 - In reply to message 1 from Seb Clark |
| There are two timeout variables: timeout for connections and data_timeout for receiveing and sending data. If it connects, you need to set the data_timeout variable to make it fail when the server takes too long to respond. |
| |
3. Re: Time Out Doesnt Work |
|
Reply |
|
|
 spoiala cristian | 2009-02-23 15:59:24 - In reply to message 2 from Manuel Lemos |
| I set data_timeout variable to 1 or 100. Same thing, if an email server stalled the connection no timeout is received so the script stop. |
| |
4. Re: Time Out Doesnt Work |
|
Reply |
|
|
 Manuel Lemos | 2009-02-23 19:31:44 - In reply to message 3 from spoiala cristian |
The data_timeout variable is just for setting the timeout for sending and receiving data.
Use the timeout class variable to set the connection timeout. |
|