Socket problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I use fsockopen to open a connection on a POP3 server.

I use fwrite to send command to the pop3 server.

I have a problem when the call between 2 fwrite is too long.
The connection is closed.
If thought the 2nd fwrite will return false (because the connection is
closed), but it does a strange thing.
Php displays errors messages again and again and again...
Theses error messages are all the same and explain that the connection has
been cancelled by host.
The only solution to stop the error messages is to kill the apache task!

Do you know this bug??
It really should return false and not try again and again to write!!

Can i know if the connection has been cancelled before i call the fwrite
function so i don't have this problem anymore?

Thanks you for your help


Site Timeline