socket_read
PHP Code:
Well i have a small problem on Socket Read, everytime that it reads data from socket evey user's latency raises 20... Any idea to solve it ? :s p.s last year that i had made a socket code [i have lost it] it didn't raised the latency... |
Re: socket_read
May be you loose the connexion each time and it reconnects each time ?
|
Re: socket_read
My Server Side Program [that the plugin connected to] is not closing the connection and my console is showing to me that the socket is still open...
If the connection closed the Server Side program will ask for authentication.. |
Re: socket_read
socket_recv(bothost,botcmd,500)
I thing on this command the ping raises.. |
Re: socket_read
bump
|
Re: socket_read
socket_change has a default timeout parameter of 100000µs, which is 100ms. That means it has the potential to block the game server for 100ms, which is a long amount of time - like an entire 10 frames on a high-ticrate server. You might want to lower it to like 1000 or 500?
|
Re: socket_read
oh well :D thank you very very much :DD
|
| All times are GMT -4. The time now is 14:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.