Log

net/server_event.lua @ 13270:14bbfb2cc8dd default tip

description author age
net: Prefix module imports with prosody namespace Kim Alvefur Fri, 17 Mar 2023 16:23:12 +0100
net.server: Fix multiple return values Kim Alvefur Fri, 03 Jun 2022 17:51:42 +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
Spelling: Fix various spelling mistakes (thanks timeless) Kim Alvefur Mon, 07 Mar 2022 00:13:56 +0100
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_event: Silence luacheck warnings Kim Alvefur Mon, 23 Dec 2019 21:52:28 +0100
server_event: Remove duplicated code (thanks waqas) Kim Alvefur Wed, 13 Nov 2019 22:34:25 +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
net.server_event: Allow writing into buffer of write-locked connections Kim Alvefur Sun, 24 Mar 2019 19:07:39 +0100
net/server_event: fix typo in comment Maxime “pep” Buquet Sat, 23 Mar 2019 01:57:12 +0000
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_event: Add SNI support (#409) Kim Alvefur Sun, 10 Mar 2019 19:32:54 +0100
net.server: New API for creating server listeners Kim Alvefur Thu, 13 Sep 2018 21:16:37 +0200
net.server: Add an API for holding writes of outgoing data Kim Alvefur Thu, 25 Oct 2018 15:12:59 +0200
net.server_event: Deprecate :lock_read here too Kim Alvefur Sun, 28 Oct 2018 16:51:58 +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_event: Don't close servers if just quitting the loop once Matthew Wild Tue, 10 Apr 2018 20:41:03 +0100
Fix spelling throughout the codebase [codespell] Kim Alvefur Sun, 04 Feb 2018 01:51:25 +0100
net.server_event: Not every instantly-readable connection is an error, continue if possible Matthew Wild Fri, 23 Feb 2018 15:41:12 +0000
net.server_event: Better outgoing connection error handling Matthew Wild Fri, 23 Feb 2018 15:33:02 +0000
net.server_event: Split long line [luacheck] Kim Alvefur Fri, 10 Nov 2017 05:50:03 +0100
net.server_event: Add "libevent" to backend description Kim Alvefur Mon, 09 Oct 2017 02:22:33 +0200
Merge 0.10->trunk Kim Alvefur Wed, 04 Jan 2017 13:18:06 +0100
net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG) Kim Alvefur Wed, 04 Jan 2017 11:24:48 +0100
Merge 0.10->trunk Kim Alvefur Sat, 08 Oct 2016 21:07:12 +0200
net.server_event: Restore destruction of socket on read timeout (lost since e67891ad18d6) (thanks Ge0rG) Kim Alvefur Sat, 08 Oct 2016 14:07:07 +0200
Merge 0.10->trunk Kim Alvefur Wed, 04 May 2016 16:58:25 +0200
net.server_event: Schedule another read callback if there is still data left in buffer after reading (fixes #583 for real) Kim Alvefur Wed, 04 May 2016 15:29:11 +0200
net.server_event: Collect entire one line function on one line Kim Alvefur Wed, 04 May 2016 15:20:33 +0200
Merge 0.10->trunk Kim Alvefur Tue, 19 Apr 2016 19:00:46 +0200
Merge 0.9->0.10 Kim Alvefur Tue, 19 Apr 2016 19:00:19 +0200
net.server_event: Check the buffer *length*, not the buffer itself (Fixes 100% cpu usage introduced in 65abd9d7bf88) Kim Alvefur Tue, 19 Apr 2016 18:58:30 +0200
Merge 0.10->trunk Kim Alvefur Tue, 19 Apr 2016 18:23:44 +0200
Merge 0.9->0.10 Kim Alvefur Tue, 19 Apr 2016 18:23:02 +0200
net.server_event: Return the correct value as timeout Kim Alvefur Tue, 19 Apr 2016 18:20:39 +0200
net.server_event: Fix traceback if event re-added during starttls Kim Alvefur Tue, 19 Apr 2016 18:18:57 +0200
Merge 0.10->trunk Kim Alvefur Tue, 19 Apr 2016 17:32:22 +0200
Merge 0.9->0.10 Kim Alvefur Tue, 19 Apr 2016 17:30:30 +0200
net.server_event: Re-add write event if writebuffer is non-empty after write (eg due to writes from ondrain callback) (fixes #661) Kim Alvefur Tue, 19 Apr 2016 17:24:00 +0200
Merge 0.10->trunk Kim Alvefur Wed, 06 Apr 2016 14:50:34 +0200
server_event: addclient: wrapclient already calls startconnection for us [backported from trunk] daurnimator Wed, 18 Dec 2013 18:11:47 -0500
Merge 0.10->trunk Kim Alvefur Tue, 05 Apr 2016 20:54:43 +0200
server_event: Split long list of assignments into multiple lines for readability Kim Alvefur Tue, 05 Apr 2016 20:41:50 +0200
server_event: Fix indentation (again) Kim Alvefur Tue, 05 Apr 2016 20:39:36 +0200
Merge 0.10->trunk Kim Alvefur Wed, 02 Mar 2016 16:34:34 +0100
Merge 0.9->0.10 Kim Alvefur Wed, 02 Mar 2016 16:32:37 +0100
net.server_event: Return true from conn:resume() to indicate success Kim Alvefur Wed, 02 Mar 2016 16:30:46 +0100
net.server_event: Prevent resuming connections without readcallback, eg closed connections (fixes #590) Kim Alvefur Wed, 02 Mar 2016 16:30:05 +0100
Merge 0.10->trunk Matthew Wild Sat, 02 Jan 2016 20:42:53 +0000
net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() ) Matthew Wild Sat, 02 Jan 2016 20:40:34 +0000
net.server_event: Return event handle from add_task so it can be closed by eg util.timer Kim Alvefur Sun, 22 Nov 2015 17:00:43 +0100
server_event: Remove needless scoping around add_task Kim Alvefur Fri, 25 Sep 2015 18:07:08 +0200
Merge 0.10->trunk Kim Alvefur Fri, 25 Sep 2015 18:03:44 +0200
server_event: Fix indentation Kim Alvefur Fri, 25 Sep 2015 17:56:21 +0200
server_event: Put function keyword on same line as the coroutine.wrap it's being passed to Kim Alvefur Fri, 25 Sep 2015 17:55:06 +0200
server_event: Normalize indentation Kim Alvefur Fri, 25 Sep 2015 17:43:21 +0200
server_event: Remove unused argument [luacheck] Kim Alvefur Fri, 25 Sep 2015 17:26:47 +0200
server_event: Comment out the unused vdebug function [luacheck] Kim Alvefur Fri, 25 Sep 2015 17:26:29 +0200
server_event: Remove unused former argument (fixes global access) [luacheck] Kim Alvefur Fri, 25 Sep 2015 17:24:43 +0200
server_event: Rename luaevent module variable to avoid name clash [luacheck] Kim Alvefur Fri, 25 Sep 2015 17:21:00 +0200
server_event: Add luacheck annotations Kim Alvefur Fri, 25 Sep 2015 17:25:46 +0200
server_event: Remove needless scoping and indentation Kim Alvefur Fri, 25 Sep 2015 17:12:55 +0200
server_event: Move local references to various functions to top of file Kim Alvefur Fri, 25 Sep 2015 17:02:17 +0200
server_event: Replace implementation of ordered set with a simple table set Kim Alvefur Fri, 25 Sep 2015 16:45:02 +0200
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_event: pcall require ssl rather than relying on globals daurnimator Wed, 18 Dec 2013 18:11:17 -0500
net/server_event: add_client should have same arguments no-matter the server backend daurnimator Wed, 18 Dec 2013 17:52:28 -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
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 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,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
Backed out changeset a5b5bce71a11 Kim Alvefur Mon, 31 Mar 2014 19:38:06 +0200
net.server_event: Rename conn:port() -> conn:clientport() to match server_select Kim Alvefur Thu, 27 Mar 2014 23:02:52 +0100
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