Commit Graph

127 Commits (47c821cf549c8ea4645190a8f4bb18b7a2eaee2b)

Author SHA1 Message Date
Kim Alvefur 28ac8f6150 net.server_select: Prevent writes after a handler is closed (fixes #783 I hope) 9 years ago
Kim Alvefur 2ed7876bea server_select: Add logging of when servers are paused and resumed 10 years ago
Kim Alvefur c46a125d73 server_select: Pause and mark server as full if accepting a client fails (fixes #597) 10 years ago
Kim Alvefur c2f7450809 server_select: Retry accepting clients from full servers after 10s (matches libevent behaviour) 10 years ago
Kim Alvefur a1560114d0 server_select: Keep track of which server listeners are full 10 years ago
Anton Shestakov 6aadf43375 net.server_select: remove unused import [luacheck] 10 years ago
Anton Shestakov 8028f46d24 net.server_select: remove unused one-letter loop variable [luacheck] 10 years ago
Anton Shestakov 7a87176df8 net.server_select: remove unused one-letter loop variables [luacheck] 10 years ago
daurnimator 411cd234e3 net.server_select: Remove do-nothing os_difftime calls [backported from trunk] 11 years ago
Kim Alvefur de6d620539 net.server_select: Add 'server' method to client connections (present in server_event) 10 years ago
Kim Alvefur 6a9bce5dae server_select: Forward the actual TLS handshake error message 10 years ago
Matthew Wild e5691fed79 net.server_select: Close all connections when quitting (and not just stepping), matches server_event 10 years ago
Matthew Wild 69d97b4f7e net.server_select: 'listener'->'listeners' (fixes undefined global access) 11 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 cf7efc33b2 net.server_{select,event}: Add compat code for supporting the same client port API on connections 12 years ago
Kim Alvefur 24056ae3ad 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 ae81ea6eda net.server_{select,event}: addclient: Add argument for overriding socket type 12 years ago
daurnimator 0d4d70c625 net/server_select: Fix typo 12 years ago
daurnimator 216b5fd851 net/server_select: addclient: Check arguments 12 years ago
daurnimator e5e8cfdccf net/server_select: addclient: Check for failure correctly; remove wrapconnection call on failure 12 years ago
daurnimator c8183e6655 net/server_select: Check arguments to add_server correctly 12 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
Kim Alvefur edc34e6635 net.server_select: Reset read timeout timer if the event is handled 11 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) 11 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) 12 years ago
Matthew Wild 6802ee7563 server_select: fix onreadtimeout support so that listeners can override the default (disconnect) behaviour 12 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. 13 years ago
Kim Alvefur 380d2bd865 net.server_select: Be less aggressive about server pause 13 years ago
Kim Alvefur bea132059b net.server_select: Remove useless duplicated settimeout() call 13 years ago
Kim Alvefur 65a2b43b0d net.server_select: Fix global access 13 years ago
Kim Alvefur de47f7e836 net.server_select: Pause servers while they are full 13 years ago