Commit Graph

112 Commits (ae81ea6edae7c3b151aa831324ff5d80fbc238fa)

Author SHA1 Message Date
Kim Alvefur ae81ea6eda net.server_{select,event}: addclient: Add argument for overriding socket type 13 years ago
daurnimator 0d4d70c625 net/server_select: Fix typo 13 years ago
daurnimator 216b5fd851 net/server_select: addclient: Check arguments 13 years ago
daurnimator e5e8cfdccf net/server_select: addclient: Check for failure correctly; remove wrapconnection call on failure 13 years ago
daurnimator c8183e6655 net/server_select: Check arguments to add_server correctly 13 years ago
Kim Alvefur 7105732151 net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present in the globals table 11 years ago
Matthew Wild 69d97b4f7e net.server_select: 'listener'->'listeners' (fixes undefined global access) 12 years ago
Matthew Wild 257d0f104b 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 57a4449fce net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data 12 years ago
Kim Alvefur edc34e6635 net.server_select: Reset read timeout timer if the event is handled 12 years ago
Matthew Wild f8776db280 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) 12 years ago
Kim Alvefur cf7efc33b2 net.server_{select,event}: Add compat code for supporting the same client port API on connections 12 years ago
Matthew Wild e204ed5dce 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) 13 years ago
Matthew Wild 6802ee7563 server_select: fix onreadtimeout support so that listeners can override the default (disconnect) behaviour 13 years ago
Kim Alvefur 314c9eec90 net.server_select: Return handler from addclient 13 years ago
Kim Alvefur 5129829bbf net.server_select: Pass on all arguments to addclient on to wrapclient 13 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur 4675a091eb net.server_select: Make sure there is a server to pause when hitting maxfd (Thanks elghinn) 13 years ago
Waqas Hussain 216ded22c8 net.server_select: Ensure _maxfd = math.huge on Windows, always. 13 years ago
Matthew Wild 8c7ccc0368 net.server_select: Default checkinterval to 30s, so that read timeouts are actually detected 13 years ago
Matthew Wild b5eff9a901 net.server_select: Support for listener.onreadtimeout() [see also e67891ad18d6] 13 years ago
Waqas Hussain e7ac57cac6 net.server_select: Don't limit max file descriptor number on Windows. 13 years ago
Kim Alvefur a7340fef1c net.server*: Allow the TCP backlog parameter to be set in the config 13 years ago
Matthew Wild 1da2e8a43e net.server_select: Don't call onconnect twice for SSL connections 13 years ago
Matthew Wild e6c2af23eb Backed out changeset f2631a14b953 13 years ago
Kim Alvefur 012519b6ad net.server_select: Don't call onconnect twice on SSL connections 13 years ago
Waqas Hussain fa54448b7a net.server_select: Add and improve some comments. 13 years ago
Waqas Hussain 107fcdf36a 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 de11909b74 net.server_select: Normalize indentation 13 years ago
Kim Alvefur 39acad1765 net.server, _select: Reorganise configuration of server_select to be more like server_event 13 years ago
Kim Alvefur c1ca70e310 net.server_select: Optimization, clean bufferqueue when it makes sense. 13 years ago
Kim Alvefur 35a4031ce4 net.server_select: Use # operator instead of string.len 13 years ago
Kim Alvefur 4e9061b326 net.server_select: Limit global number of sockets passed to select. 14 years ago
Kim Alvefur 380d2bd865 net.server_select: Be less aggressive about server pause 14 years ago
Kim Alvefur bea132059b net.server_select: Remove useless duplicated settimeout() call 14 years ago
Kim Alvefur 65a2b43b0d net.server_select: Fix global access 14 years ago
Kim Alvefur de47f7e836 net.server_select: Pause servers while they are full 14 years ago
Kim Alvefur f2af550531 net.server_select: Add pause and resume methods 14 years ago
Kim Alvefur c3fe715df7 net.server_select: Better names for config options (thanks MattJ) 14 years ago
Matthew Wild 189de127dc net.server_select: Remove unused variables and imports 14 years ago
Matthew Wild a60f6500ea net.server_select: Remove extraneous variable 14 years ago
Matthew Wild 689b6f19a0 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
Matthew Wild 73c5470e83 net.server_select, net.server_event: Change semantics of conn:close() - always call ondisconnect (with err == nil), and never close with data in send buffer (i.e. 'now' parameter removed) 14 years ago
Matthew Wild be0728553e net.server_select: Don't close client connections when closing a server (it wasn't working anyway) 14 years ago
Matthew Wild 5d6f4c7124 net.server_select: Call ondisconnect handler, even if we closed the socket ourselves (fixes HTTP session hoarding, thanks Maranda) 14 years ago
Matthew Wild 007ebd8a18 net.server_select: Return error when SSL handshake fails immediately (thanks Zash) 14 years ago
Matthew Wild ffa939698b net.server, net.timer, net.server_select: Rearrange dependencies between these three modules. server.addtimer() is no longer a public function (renamed to _addtimer) and is not available at all from server_event (compat code removed to prevent traceback) (thanks Nulani) 14 years ago
Matthew Wild f56e371309 net.server_select: Remove server from _server table when closing 14 years ago
Matthew Wild 6975f1a07d net.server_select: Autostart SSL negotiation as the last part of socket setup to avoid a traceback (#262) (thanks Maranda) 15 years ago
Waqas Hussain a516177631 net.server_event, net.server_select: Fixed some global pollution. 15 years ago