Log

net/server_select.lua @ 12660:e8f57970ced5

description author age
net.server: Fix multiple return values Kim Alvefur Fri, 03 Jun 2022 17:51:42 +0200
net.server_select: Restore dependency on LuaSec to soft for tests Kim Alvefur Wed, 27 Apr 2022 21:45:36 +0200
net: refactor sslconfig to not depend on LuaSec Jonas Schäfer Sat, 02 Apr 2022 11:15:33 +0200
net: isolate LuaSec-specifics Jonas Schäfer Wed, 27 Apr 2022 17:44:14 +0200
net.server: Add a predrain callaback just before writes Kim Alvefur Mon, 16 Aug 2021 12:34:52 +0200
Merge 0.11->trunk Matthew Wild Tue, 15 Sep 2020 09:09:06 +0100
net.server: Backport client parts of SNI support from trunk (#409) 0.11 Kim Alvefur Mon, 17 Aug 2020 23:01:14 +0200
net.server_select: Fix traceback (thanks eta) Kim Alvefur Sun, 23 Aug 2020 22:19:29 +0200
net.server_select: Pass conn/handler to readbuffer/sendbuffer Matthew Wild Mon, 01 Jun 2020 13:41:41 +0100
net.server_select: Ensure onconnect is always called before onincoming Matthew Wild Mon, 01 Jun 2020 13:38:47 +0100
net.server_select: Remove prefix added to TLS handshaker errors Kim Alvefur Sun, 01 Dec 2019 01:21:58 +0100
net.server: Handle server name (SNI) as extra argument Kim Alvefur Sun, 01 Sep 2019 01:58:38 +0200
net.server: Accept and save an 'extra' field for client connections Kim Alvefur Sun, 01 Sep 2019 01:55:55 +0200
Fix various spelling mistakes [codespell] Kim Alvefur Fri, 03 May 2019 20:54:24 +0200
net.server_select: Fix write pause/resume functions Kim Alvefur Sun, 24 Mar 2019 20:12:22 +0100
net.server: Only add alternate SNI contexts if at least one is provided Kim Alvefur Mon, 11 Mar 2019 13:00:51 +0100
net.server_select: SNI support (#409) Kim Alvefur Sun, 10 Mar 2019 19:32:33 +0100
net.server: New API for creating server listeners Kim Alvefur Thu, 13 Sep 2018 21:16:37 +0200
Merge 0.11->trunk Kim Alvefur Sun, 18 Nov 2018 01:30:20 +0100
net.server_select: Fix IP validation to use correct variable (thanks quest) 0.11 Kim Alvefur Sat, 17 Nov 2018 16:26:40 +0100
net.server: Add an API for holding writes of outgoing data Kim Alvefur Thu, 25 Oct 2018 15:12:59 +0200
net.server_select: Still allow buffering outgoing data on write-locked connections Kim Alvefur Sun, 28 Oct 2018 17:11:18 +0100
net.server_select: Replace use of deprecated :lock_read in server.link Kim Alvefur Sun, 28 Oct 2018 17:08:50 +0100
net.server_select: Deprecate :lock method Kim Alvefur Sun, 28 Oct 2018 16:55:21 +0100
server_select: Fix :lock method Kim Alvefur Sun, 28 Oct 2018 16:54:08 +0100
net.server_select: Move code from :lock_read into :pause and :resume Kim Alvefur Sun, 28 Oct 2018 16:53:10 +0100
net.server_select: Deprecate connection:lock_read() method Kim Alvefur Sun, 28 Oct 2018 16:49:28 +0100
net.server: Swich method for connecting sockets with remotes Kim Alvefur Fri, 12 Oct 2018 17:36:34 +0200
net.server: Remove socket constructor fallback Kim Alvefur Fri, 12 Oct 2018 16:24:49 +0200
net.server: Require IP address as argument to addclient (no DNS names) Kim Alvefur Thu, 11 Oct 2018 15:48:30 +0200
net.connect: Fix passing request table to new listener Kim Alvefur Wed, 26 Sep 2018 17:36:53 +0200
net.server: Call a 'onattach' callback when replacing listeners Kim Alvefur Wed, 26 Sep 2018 14:25:59 +0200
net.server: Set default read timeout to 14 minutes (fixes #971) Kim Alvefur Fri, 06 Jul 2018 19:02:19 +0200
net.server: Add watchfd, a simple API for watching file descriptors Kim Alvefur Wed, 09 May 2018 16:15:40 +0200
net.server_select: Allow setquitting("once") to allow resuming the loop later Matthew Wild Tue, 10 Apr 2018 20:40:07 +0100
Fix spelling throughout the codebase [codespell] Kim Alvefur Sun, 04 Feb 2018 01:51:25 +0100
net.server_select: Better detection of errors for outgoing connections Matthew Wild Fri, 23 Feb 2018 15:30:00 +0000
Merge 0.10->trunk Kim Alvefur Sat, 26 Nov 2016 20:11:03 +0100
Merge 0.9->0.10 Kim Alvefur Thu, 24 Nov 2016 14:18:25 +0100
net.server_select: Prevent writes after a handler is closed (fixes #783 I hope) Kim Alvefur Tue, 22 Nov 2016 15:28:24 +0100
Merge 0.10 -> trunk Matthew Wild Thu, 28 Jul 2016 09:39:50 +0100
net.server_select: remove unused import [luacheck] Anton Shestakov Thu, 28 Jul 2016 16:14:39 +0800
Merge 0.10->trunk Kim Alvefur Thu, 14 Jul 2016 13:41:02 +0200
net.server_select: remove unused one-letter loop variable [luacheck] Anton Shestakov Thu, 14 Jul 2016 18:49:38 +0800
Merge 0.10->trunk Kim Alvefur Fri, 08 Jul 2016 22:01:10 +0200
net.server_select: remove unused one-letter loop variables [luacheck] Anton Shestakov Sat, 09 Jul 2016 00:37:34 +0800
Merge 0.10->trunk Kim Alvefur Tue, 29 Mar 2016 15:38:14 +0200
net.server_select: Remove do-nothing os_difftime calls [backported from trunk] daurnimator Mon, 19 Jan 2015 14:01:11 -0500
Merge 0.10->trunk Kim Alvefur Fri, 22 Jan 2016 15:03:02 +0100
Merge 0.9->0.10 Kim Alvefur Fri, 22 Jan 2016 14:49:05 +0100
server_select: Add logging of when servers are paused and resumed Kim Alvefur Fri, 22 Jan 2016 02:00:43 +0100
server_select: Pause and mark server as full if accepting a client fails (fixes #597) Kim Alvefur Fri, 22 Jan 2016 02:00:27 +0100
server_select: Retry accepting clients from full servers after 10s (matches libevent behaviour) Kim Alvefur Fri, 22 Jan 2016 01:59:25 +0100
server_select: Keep track of which server listeners are full Kim Alvefur Fri, 22 Jan 2016 01:58:39 +0100
Merge 0.10->trunk Kim Alvefur Sun, 10 Jan 2016 03:57:17 +0100
net.server_select: Add 'server' method to client connections (present in server_event) Kim Alvefur Sat, 09 Jan 2016 23:54:19 +0100
Merge 0.10->trunk Matthew Wild Mon, 04 Jan 2016 09:09:15 +0000
server_select: Forward the actual TLS handshake error message Kim Alvefur Sun, 03 Jan 2016 17:19:14 +0100
Merge 0.10->trunk Matthew Wild Sat, 02 Jan 2016 20:42:53 +0000
net.server_select: Close all connections when quitting (and not just stepping), matches server_event Matthew Wild Sat, 02 Jan 2016 20:42:20 +0000
Merge 0.10->trunk Matthew Wild Thu, 03 Sep 2015 16:43:46 +0100
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) Kim Alvefur Mon, 23 Dec 2013 17:57:53 +0100
net.server_{select,event}: addclient: Add argument for overriding socket type Kim Alvefur Mon, 23 Dec 2013 17:55:41 +0100
net/server_select: Fix typo daurnimator Wed, 18 Dec 2013 18:06:33 -0500
net/server_select: addclient: Check arguments daurnimator Wed, 18 Dec 2013 17:55:03 -0500
net/server_select: addclient: Check for failure correctly; remove wrapconnection call on failure daurnimator Wed, 18 Dec 2013 17:54:31 -0500
net/server_select: Check arguments to add_server correctly daurnimator Wed, 18 Dec 2013 17:51:27 -0500
Merge 0.10->trunk Kim Alvefur Thu, 20 Aug 2015 13:05:22 +0200
net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present in the globals table Kim Alvefur Mon, 23 Feb 2015 12:04:43 +0100
net.server_select: Remove unused code daurnimator Mon, 19 Jan 2015 14:09:13 -0500
net.server_select: Remove socket.sleep call from main loop daurnimator Mon, 19 Jan 2015 14:05:37 -0500
net.server_select: Remove do-nothing os_difftime calls daurnimator Mon, 19 Jan 2015 14:01:11 -0500
net.server_select: In add_task timer callback, use passed in time rather than re-fetching daurnimator Thu, 15 Jan 2015 09:05:08 -0500
net.server_select: Fix timers not being fired until another timer fixes (or 1 second passes) daurnimator Thu, 15 Jan 2015 09:03:00 -0500
Move timer code out of util.timer and into relevant net.server backends daurnimator Mon, 20 Oct 2014 16:13:24 -0400
Merge 0.10->trunk Kim Alvefur Sun, 05 Oct 2014 15:37:46 +0200
net.server_select: Reset read timeout timer if the event is handled Kim Alvefur Fri, 03 Oct 2014 14:42:18 +0200
Merge 0.10->trunk Kim Alvefur Sun, 28 Sep 2014 01:56:22 +0200
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) Matthew Wild Fri, 26 Sep 2014 17:16:46 +0100
Merge 0.10->trunk Kim Alvefur Tue, 02 Sep 2014 22:34:32 +0200
Merge 0.9->0.10 Kim Alvefur Tue, 02 Sep 2014 22:33:11 +0200
net.server_select: 'listener'->'listeners' (fixes undefined global access) Matthew Wild Tue, 02 Sep 2014 17:23:44 +0100
net.server_{select,event}: Add 'ondetach' callback for listener objects, to notify them when another listener is being assigned to a connection Matthew Wild Fri, 29 Aug 2014 11:39:56 +0100
Merge 0.10->trunk Matthew Wild Fri, 25 Jul 2014 13:54:47 +0100
Merge 0.9->0.10 Matthew Wild Fri, 25 Jul 2014 13:54:27 +0100
net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data Matthew Wild Fri, 25 Jul 2014 13:53:39 +0100
net/server_*: Fix addclient: LuaSocket 3.0-rc1 sometimes returns EALREADY instead of EINPROGRESS when the dns lookup has multiple results daurnimator Wed, 25 Jun 2014 12:15:00 -0400
Merge 0.10->trunk Matthew Wild Wed, 02 Apr 2014 17:42:22 +0100
Merge 0.9->0.10 Matthew Wild Wed, 02 Apr 2014 17:41:38 +0100
net.server_{select,event}: Add compat code for supporting the same client port API on connections Kim Alvefur Tue, 01 Apr 2014 15:26:40 +0200
net.server_{select,event}: addclient: Handle missing getaddrinfo Kim Alvefur Mon, 23 Dec 2013 23:23:59 +0100
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) Kim Alvefur Mon, 23 Dec 2013 17:57:53 +0100
net.server_{select,event}: addclient: Add argument for overriding socket type Kim Alvefur Mon, 23 Dec 2013 17:55:41 +0100
net/server_select: Fix typo daurnimator Wed, 18 Dec 2013 18:06:33 -0500
net/server_select: addclient: Check arguments daurnimator Wed, 18 Dec 2013 17:55:03 -0500
net/server_select: addclient: Check for failure correctly; remove wrapconnection call on failure daurnimator Wed, 18 Dec 2013 17:54:31 -0500
net/server_select: Check arguments to add_server correctly daurnimator Wed, 18 Dec 2013 17:51:27 -0500
net/server_select: pcall require ssl (easy to forget to require ssl) daurnimator Wed, 18 Dec 2013 17:50:38 -0500
Merge 0.9->0.10 Matthew Wild Mon, 16 Dec 2013 23:32:11 +0000
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) Matthew Wild Mon, 16 Dec 2013 23:31:43 +0000
server_select: fix onreadtimeout support so that listeners can override the default (disconnect) behaviour Matthew Wild Sat, 28 Sep 2013 18:40:48 +0100
net.server_select: Return handler from addclient Kim Alvefur Fri, 06 Sep 2013 10:53:04 +0200
net.server_select: Pass on all arguments to addclient on to wrapclient Kim Alvefur Fri, 06 Sep 2013 10:52:37 +0200
Remove all trailing whitespace Florian Zeitz Fri, 09 Aug 2013 17:48:21 +0200
Merge 0.9->trunk Kim Alvefur Sun, 09 Jun 2013 17:03:15 +0200
net.server_select: Make sure there is a server to pause when hitting maxfd (Thanks elghinn) Kim Alvefur Sun, 09 Jun 2013 17:00:26 +0200
Merge 0.9->trunk Matthew Wild Wed, 05 Jun 2013 21:36:29 +0100
net.server_select: Ensure _maxfd = math.huge on Windows, always. Waqas Hussain Sun, 02 Jun 2013 16:23:19 -0400
net.server_select: Default checkinterval to 30s, so that read timeouts are actually detected Matthew Wild Fri, 24 May 2013 18:33:16 +0100
net.server_select: Support for listener.onreadtimeout() [see also e67891ad18d6] Matthew Wild Fri, 24 May 2013 18:14:09 +0100
net.server_select: Don't limit max file descriptor number on Windows. Waqas Hussain Mon, 29 Apr 2013 20:26:48 +0500
net.server*: Allow the TCP backlog parameter to be set in the config Kim Alvefur Sat, 27 Apr 2013 22:46:01 +0200
net.server_select: Don't call onconnect twice for SSL connections Matthew Wild Thu, 18 Apr 2013 00:41:03 +0100
Merge backout Matthew Wild Thu, 18 Apr 2013 00:40:09 +0100
Backed out changeset f2631a14b953 Matthew Wild Thu, 18 Apr 2013 00:39:59 +0100
net.server_select: Add and improve some comments. Waqas Hussain Tue, 16 Apr 2013 18:18:22 -0400
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). Waqas Hussain Tue, 16 Apr 2013 18:15:10 -0400
net.server_select: Normalize indentation Kim Alvefur Wed, 17 Apr 2013 21:30:44 +0200
net.server_select: Don't call onconnect twice on SSL connections Kim Alvefur Wed, 17 Apr 2013 19:10:04 +0200
net.server, _select: Reorganise configuration of server_select to be more like server_event Kim Alvefur Sat, 23 Mar 2013 20:06:02 +0100