![]() |
Problem with sockets not closing
Hello my PHP gurus.
I have something for you to sink your teeth into. let me show you my code im working with: PHP Code:
Now.. the problem is that when i want to run the server script again and try to send data to it with my client script. The client script gives the error that a connection on the server script is blocking the socket_write() function in my client script. It would seem that the socket first opened the first run on the server script is still open and wont accept new connections. I canīt get whats wrong. Im really looking for your advice. By request i can post the client script also, but i donīt think its where the problem lies. Sorry for the english :) Note: - I am running the script from Win7 command line via the php.exe executible. Thank you in advance. |
Thanks you for the post.
<I'm a sucky spammer so now I'm banned; no link juice for me> |
Oh.. I'd like to know the answer to this as well.
|
This thread is ancient, the above post is fake sig (link spam).
|
Awww bummer. I didn't notice that. Still, does anyone know the basic answer to this?
|
I've tested it and the result is following
Code:
~/test$ php5 srv.php |
Interesting.
|
| All times are GMT. The time now is 05:30 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0