Hello,
I'm building an app that unfortunately doesn't always get to close sockets given that it is under development. When trying to re-run the culprit, I often get such messages:
Warning: socket_bind() unable to bind address [98]: Address already in use in
I'm using:
/* set reusable */
if( !( socket_set_option( $sock, SOL_SOCKET, SO_REUSEADDR, 1 ) ) )
fwrite( $server, "socket_set_option() failed: reason: " . socket_strerror( $sock ) . "\n" );
In the code, so this should set it as reusable no? Any ideas? Even being able to purge the socket by force for now would be nice.
PHP 4.3.0
Cheers.