Commit Graph

154 Commits (d3bdcaeda0e621f05abaa6c8a86b52dc20a02859)

Author SHA1 Message Date
Kim Alvefur 28ac8f6150 net.server_select: Prevent writes after a handler is closed (fixes #783 I hope) 9 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
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
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
Kim Alvefur 7105732151 net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present in the globals table 11 years ago
daurnimator 6d2aec4a34 net.server_select: Remove unused code 11 years ago
daurnimator 9ee1db0a57 net.server_select: Remove socket.sleep call from main loop 11 years ago
daurnimator 411cd234e3 net.server_select: Remove do-nothing os_difftime calls [backported from trunk] 11 years ago
daurnimator 7b2112c523 net.server_select: Remove do-nothing os_difftime calls 11 years ago
daurnimator 2a10013752 net.server_select: In add_task timer callback, use passed in time rather than re-fetching 11 years ago
daurnimator 037dd40bb4 net.server_select: Fix timers not being fired until another timer fixes (or 1 second passes) 11 years ago
daurnimator e51cc17dcb Move timer code out of util.timer and into relevant net.server backends 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 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
daurnimator b124e4e226 net/server_*: Fix addclient: LuaSocket 3.0-rc1 sometimes returns EALREADY instead of EINPROGRESS when the dns lookup has multiple results 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 195743afe0 net.server_{select,event}: addclient: Handle missing getaddrinfo 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 cf48e76e78 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
Kim Alvefur 3e156487cf net.server_{select,event}: addclient: Add argument for overriding socket type 12 years ago
daurnimator 62ce3bb708 net/server_select: Fix typo 12 years ago
daurnimator ca6af8e2cf net/server_select: addclient: Check arguments 12 years ago
daurnimator 32b5b56170 net/server_select: addclient: Check for failure correctly; remove wrapconnection call on failure 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
daurnimator 1bdf48e7d2 net/server_select: Check arguments to add_server correctly 12 years ago
daurnimator a3c709b756 net/server_select: pcall require ssl (easy to forget to require ssl) 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) 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