Commit Graph

121 Commits (71d2dced8dd98ce1b1bf67e2ebbae981cf85287c)

Author SHA1 Message Date
Kim Alvefur 48feb105c4 server_select: Add logging of when servers are paused and resumed 10 years ago
Kim Alvefur 1b285192b2 server_select: Pause and mark server as full if accepting a client fails (fixes #597) 10 years ago
Kim Alvefur 773269db7c server_select: Retry accepting clients from full servers after 10s (matches libevent behaviour) 10 years ago
Kim Alvefur f4631dda05 server_select: Keep track of which server listeners are full 10 years ago
Kim Alvefur d2bf6120f1 net.server_select: Add 'server' method to client connections (present in server_event) 10 years ago
Kim Alvefur 34556c6963 server_select: Forward the actual TLS handshake error message 10 years ago
Matthew Wild 1eb8d252ea net.server_select: Close all connections when quitting (and not just stepping), matches server_event 10 years ago
Matthew Wild 3d6dafb89a net.server_select: 'listener'->'listeners' (fixes undefined global access) 11 years ago
Matthew Wild 972f29756d net.server_{select,event}: Add 'ondetach' callback for listener objects, to notify them when another listener is being assigned to a connection 12 years ago
Matthew Wild 5647cd2287 net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data 12 years ago
Kim Alvefur 8cf56e87ac net.server_{select,event}: Add compat code for supporting the same client port API on connections 12 years ago
Kim Alvefur d5879e2187 net.server_{select,event}: addclient: Use getaddrinfo to detect IP address type if no socket type argument given. (Argument must be given for non-TCP) 12 years ago
Kim Alvefur 58bb5f01fd net.server_{select,event}: addclient: Add argument for overriding socket type 12 years ago
daurnimator 3cec6c49ed net/server_select: Fix typo 12 years ago
daurnimator f73d6a6eeb net/server_select: addclient: Check arguments 12 years ago
daurnimator 94fa96bf88 net/server_select: addclient: Check for failure correctly; remove wrapconnection call on failure 12 years ago
daurnimator 6044700335 net/server_select: Check arguments to add_server correctly 12 years ago
Kim Alvefur 0a257b3921 net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present in the globals table 11 years ago
Kim Alvefur 89344e5323 net.server_select: Reset read timeout timer if the event is handled 11 years ago
Matthew Wild 2967393ae8 net.server_select: When an SSL handshake is connected, if there is pending data to be written to the socket, mark the socket as waiting to send (thanks daurnimator) 11 years ago
Matthew Wild ceba28fe83 net.server_select: Don't remove the socket from sendlist when we might have data in the buffer (we'll now let sendbuffer() take care of that) (thanks daurnimator) 12 years ago
Matthew Wild d3d91c224a server_select: fix onreadtimeout support so that listeners can override the default (disconnect) behaviour 12 years ago
Kim Alvefur 3606c59339 net.server_select: Return handler from addclient 12 years ago
Kim Alvefur f99f4528d9 net.server_select: Pass on all arguments to addclient on to wrapclient 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Kim Alvefur d7d15e2ec7 net.server_select: Make sure there is a server to pause when hitting maxfd (Thanks elghinn) 13 years ago
Waqas Hussain 10338aeb7f net.server_select: Ensure _maxfd = math.huge on Windows, always. 13 years ago
Matthew Wild 924534d181 net.server_select: Default checkinterval to 30s, so that read timeouts are actually detected 13 years ago
Matthew Wild 8e377ca47c net.server_select: Support for listener.onreadtimeout() [see also e67891ad18d6] 13 years ago
Waqas Hussain 6fb891d747 net.server_select: Don't limit max file descriptor number on Windows. 13 years ago
Kim Alvefur e0eed7d73c net.server*: Allow the TCP backlog parameter to be set in the config 13 years ago
Matthew Wild 62494defe9 net.server_select: Don't call onconnect twice for SSL connections 13 years ago
Matthew Wild 452d2d223c Backed out changeset f2631a14b953 13 years ago
Kim Alvefur 998b0c1b8b net.server_select: Don't call onconnect twice on SSL connections 13 years ago
Waqas Hussain f05ca62b3b net.server_select: Add and improve some comments. 13 years ago
Waqas Hussain 27f39498ff net.server_select: Move socket timeout cleanup code out of a timer, into the select loop (which makes util.timer the only timer using server_select._addtimer). 13 years ago
Kim Alvefur cc4fd7b37d net.server_select: Normalize indentation 13 years ago
Kim Alvefur 3ec1c834e6 net.server, _select: Reorganise configuration of server_select to be more like server_event 13 years ago
Kim Alvefur 2df2e726b4 net.server_select: Optimization, clean bufferqueue when it makes sense. 13 years ago
Kim Alvefur e89b805d06 net.server_select: Use # operator instead of string.len 13 years ago
Kim Alvefur a003acb385 net.server_select: Limit global number of sockets passed to select. 13 years ago
Kim Alvefur 4f6cb9d1c6 net.server_select: Be less aggressive about server pause 13 years ago
Kim Alvefur 5a496dff07 net.server_select: Remove useless duplicated settimeout() call 13 years ago
Kim Alvefur 97a1cc8500 net.server_select: Fix global access 13 years ago
Kim Alvefur b0249c4d4a net.server_select: Pause servers while they are full 13 years ago
Kim Alvefur 387897f53f net.server_select: Add pause and resume methods 13 years ago
Kim Alvefur 607ba9efcd net.server_select: Better names for config options (thanks MattJ) 13 years ago
Matthew Wild 1901905a00 net.server_select: Remove unused variables and imports 14 years ago
Matthew Wild f6ec86d690 net.server_select: Remove extraneous variable 14 years ago
Matthew Wild 21fb56dc4a net.server_select: Never call ondisconnect() directly, go via handler:close() or handler:force_close() - fixes cases where ondisconnect() could be called multiple times for the same connection, leading to issues with s2sout retry logic. 14 years ago