View Single Post
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 08-07-2009 , 23:18   Re: Steam Friends Highlighter
Reply With Quote #29

It uses what is called non blocking sockets. Those sockets do not wait for the data retrieval. It was carefully made so that even in map changes the server do not hang by using the non blocking sockets in a ordered way. That is: the server does always just one request / retrieval per second so, it won't hang nor lag. That's why I needed to change the module. I noticed that thanks to amxx profiler:

PHP Code:
|                      socket_open |         13 3.290132 0.234283 0.422291

|         socket_open_non_blocking |         33 0.962503 0.023228 0.154513 
The only thing that could make it hang when using non blocking sockets would be in multiple use of sockets (on multiple connects) but that, as I mentioned before, can't happen because the plugin is made so only a request per second is made.

Anyway the better way for you to know is to test it yourself.
__________________

Last edited by joaquimandrade; 08-07-2009 at 23:20.
joaquimandrade is offline