aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2011-06-27 17:04:32 -0700
committerSam Roberts <vieuxtech@gmail.com>2012-04-11 13:45:59 -0700
commitf63d616bc048fe256181ff5e7e4aaca11afe3237 (patch)
treeb1869e91954804a25f676adb2389059c9043a466 /etc
parent21698c7665ee1cb43e1b83c3ea5cf4dbf827c1df (diff)
downloadluasocket-f63d616bc048fe256181ff5e7e4aaca11afe3237.tar.gz
luasocket-f63d616bc048fe256181ff5e7e4aaca11afe3237.tar.bz2
luasocket-f63d616bc048fe256181ff5e7e4aaca11afe3237.zip
Use poll by default for socket.connect(), instead of select().
Connect timeouts are implemented by waiting on the new socket descriptor. When select() is used for this, it imposes an arbitrary limit on the number of connections that can be made, usually 1024-3. Using poll() removes this limit on the number of simultaneous TCP connections can be made using luasocket. The previous default implementation using select() is available by defining SOCKET_SELECT. Note that using socket.select() always uses select(), so it isn't possible to wait on an arbitrary number of connections at once.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions