Answer the question
In order to leave comments, you need to log in
PHP socket_bind() - Address already in use?
I have the following sequence of actions:
socket_create();
socket_bind();
socket_accept();
socket_close();
PHP Warning: socket_bind(): unable to bind address [98]: Address already in us
Answer the question
In order to leave comments, you need to log in
When an application dies, the system does not release the socket immediately (by default), it goes into TAIM_AWAIT.
If you want to explicitly indicate that immediately after the socket is closed, it can be opened immediately, you need to specify the SO_REUSEADDR option
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question