Proxy server with multiplexing socket by select function
paul
posted @ Sun, 21 Dec 2008 22:49:25 +0800
in coding life
, 1599 readers
Performance is not so good as forking server. Remote address connecting is a time consuming action and blocks the main operating loop. The good of select function is to avoid spawning a bunch of child processes. Did not try the non-block model socket with select function. Since the non-block model socket seems not be well supported by ActivePerl on Win32. Maybe the performance will be better. At least, the conneting action won't block main loop. But still brings a little complication.
This work is licensed under a Creative Commons Attribution 3.0 Unported License.