aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
Commit message (Collapse)AuthorAgeFilesLines
* Fix spelling throughout the codebase [codespell]Kim Alvefur2018-02-041-3/+3
|
* net.server_select: Better detection of errors for outgoing connectionsMatthew Wild2018-02-231-6/+7
| | | | | | | | | | | On connection failure, a socket is marked readable and writable. So to detect initial connection failures (connection refused, etc.) we now watch for sockets becoming readable during initial connection, and also read from readable sockets before writing to writable sockets. This should fix 'onconnect' being called for outgoing connections that actually failed.
* Merge 0.10->trunkKim Alvefur2016-11-261-0/+1
|\
| * Merge 0.9->0.10Kim Alvefur2016-11-241-0/+1
| |\
| | * net.server_select: Prevent writes after a handler is closed (fixes #783 I hope)Kim Alvefur2016-11-221-0/+1
| | |
| * | net.server_select: remove unused import [luacheck]Anton Shestakov2016-07-281-1/+0
| | |
* | | Merge 0.10->trunkKim Alvefur2016-07-141-1/+1
|\| |
| * | net.server_select: remove unused one-letter loop variable [luacheck]Anton Shestakov2016-07-141-1/+1
| | |
* | | Merge 0.10->trunkKim Alvefur2016-07-081-2/+2
|\| |
| * | net.server_select: remove unused one-letter loop variables [luacheck]Anton Shestakov2016-07-091-2/+2
| | |
| * | net.server_select: Remove do-nothing os_difftime calls [backported from trunk]daurnimator2015-01-191-5/+3
| | |
* | | Merge 0.10->trunkKim Alvefur2016-01-221-1/+21
|\| |
| * | Merge 0.9->0.10Kim Alvefur2016-01-221-0/+20
| |\|
| | * server_select: Add logging of when servers are paused and resumedKim Alvefur2016-01-221-0/+2
| | |
| | * server_select: Pause and mark server as full if accepting a client fails ↵Kim Alvefur2016-01-221-0/+2
| | | | | | | | | | | | (fixes #597)
| | * server_select: Retry accepting clients from full servers after 10s (matches ↵Kim Alvefur2016-01-221-0/+11
| | | | | | | | | | | | libevent behaviour)
| | * server_select: Keep track of which server listeners are fullKim Alvefur2016-01-221-0/+5
| | |
* | | Merge 0.10->trunkKim Alvefur2016-01-101-0/+3
|\| |
| * | net.server_select: Add 'server' method to client connections (present in ↵Kim Alvefur2016-01-091-0/+3
| | | | | | | | | | | | server_event)
* | | Merge 0.10->trunkMatthew Wild2016-01-041-2/+3
|\| |
| * | server_select: Forward the actual TLS handshake error messageKim Alvefur2016-01-031-2/+3
| | |
* | | Merge 0.10->trunkMatthew Wild2016-01-021-0/+1
|\| |
| * | net.server_select: Close all connections when quitting (and not just ↵Matthew Wild2016-01-021-0/+1
| | | | | | | | | | | | stepping), matches server_event
| * | net.server_{select,event}: addclient: Use getaddrinfo to detect IP address ↵Kim Alvefur2013-12-231-1/+9
| | | | | | | | | | | | type if no socket type argument given. (Argument must be given for non-TCP)
| * | net.server_{select,event}: addclient: Add argument for overriding socket typeKim Alvefur2013-12-231-2/+9
| | |
| * | net/server_select: Fix typodaurnimator2013-12-181-1/+1
| | |
| * | net/server_select: addclient: Check argumentsdaurnimator2013-12-181-0/+15
| | |
| * | net/server_select: addclient: Check for failure correctly; remove ↵daurnimator2013-12-181-3/+3
| | | | | | | | | | | | wrapconnection call on failure
| * | net/server_select: Check arguments to add_server correctlydaurnimator2013-12-181-3/+4
| | |
| * | net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present ↵Kim Alvefur2015-02-231-5/+5
| | | | | | | | | | | | in the globals table
* | | net.server_select: Remove unused codedaurnimator2015-01-191-6/+0
| | |
* | | net.server_select: Remove socket.sleep call from main loopdaurnimator2015-01-191-8/+0
| | | | | | | | | | | | | | | | | | It's been there since the start; but should really not be required. People can remember an issue with FreeBSD that this solved, but this was a hack solution anyway. If that issue rears it's head again, we will solve it properly.
* | | net.server_select: Remove do-nothing os_difftime callsdaurnimator2015-01-191-5/+3
| | |
* | | net.server_select: In add_task timer callback, use passed in time rather ↵daurnimator2015-01-151-2/+1
| | | | | | | | | | | | than re-fetching
* | | net.server_select: Fix timers not being fired until another timer fixes (or ↵daurnimator2015-01-151-16/+8
| | | | | | | | | | | | 1 second passes)
* | | Move timer code out of util.timer and into relevant net.server backendsdaurnimator2014-10-201-0/+46
| | |
* | | Merge 0.10->trunkKim Alvefur2014-10-051-0/+2
|\| |
| * | net.server_select: Reset read timeout timer if the event is handledKim Alvefur2014-10-031-0/+2
| | |
* | | Merge 0.10->trunkKim Alvefur2014-09-281-0/+3
|\| |
| * | net.server_select: When an SSL handshake is connected, if there is pending ↵Matthew Wild2014-09-261-0/+3
| | | | | | | | | | | | data to be written to the socket, mark the socket as waiting to send (thanks daurnimator)
* | | Merge 0.10->trunkKim Alvefur2014-09-021-0/+5
|\| |
| * | Merge 0.9->0.10Kim Alvefur2014-09-021-0/+5
| |\|
| | * net.server_select: 'listener'->'listeners' (fixes undefined global access)Matthew Wild2014-09-021-1/+1
| | |
| | * net.server_{select,event}: Add 'ondetach' callback for listener objects, to ↵Matthew Wild2014-08-291-0/+5
| | | | | | | | | | | | notify them when another listener is being assigned to a connection
* | | Merge 0.10->trunkMatthew Wild2014-07-251-0/+1
|\| |
| * | Merge 0.9->0.10Matthew Wild2014-07-251-0/+1
| |\|
| | * net.server_select/event: Switch sender mode to *a when reading, to make sure ↵Matthew Wild2014-07-251-0/+1
| | | | | | | | | | | | we get all available data
* | | net/server_*: Fix addclient: LuaSocket 3.0-rc1 sometimes returns EALREADY ↵daurnimator2014-06-251-1/+1
| | | | | | | | | | | | instead of EINPROGRESS when the dns lookup has multiple results
* | | Merge 0.10->trunkMatthew Wild2014-04-021-0/+1
|\| |
| * | Merge 0.9->0.10Matthew Wild2014-04-021-12/+16
| |\ \ | | |/ | |/|