Hi all,
I noticed that when I use socket_create and socket_connect that the
socket goes into CLOSE_WAIT state immediately after receiving data. Even
when I don't use socket_close on the socket resource. Another weird
thing is that they stay in this state until the server gets booted.
When I use fsockopen it works as expected, i.e. when I don't call fclose
on the socket resource the socket state remains ESTABLISHED.
I'm not sure if this has something to do with the fact that I tried it
on a Windows server, but is this a bug, or is it supposed to behave like
this?
Regards,
Ruben.
I noticed that when I use socket_create and socket_connect that the
socket goes into CLOSE_WAIT state immediately after receiving data. Even
when I don't use socket_close on the socket resource. Another weird
thing is that they stay in this state until the server gets booted.
When I use fsockopen it works as expected, i.e. when I don't call fclose
on the socket resource the socket state remains ESTABLISHED.
I'm not sure if this has something to do with the fact that I tried it
on a Windows server, but is this a bug, or is it supposed to behave like
this?
Regards,
Ruben.
Comment