log net/server_event.lua @ 9598:dcd85bc34d21

age author description
Thu, 25 Oct 2018 15:12:59 +0200 Kim Alvefur net.server: Add an API for holding writes of outgoing data
Sun, 28 Oct 2018 16:51:58 +0100 Kim Alvefur net.server_event: Deprecate :lock_read here too
Fri, 12 Oct 2018 17:36:34 +0200 Kim Alvefur net.server: Swich method for connecting sockets with remotes
Fri, 12 Oct 2018 16:24:49 +0200 Kim Alvefur net.server: Remove socket constructor fallback
Thu, 11 Oct 2018 15:48:30 +0200 Kim Alvefur net.server: Require IP address as argument to addclient (no DNS names)
Wed, 26 Sep 2018 17:36:53 +0200 Kim Alvefur net.connect: Fix passing request table to new listener
Wed, 26 Sep 2018 14:25:59 +0200 Kim Alvefur net.server: Call a 'onattach' callback when replacing listeners
Fri, 06 Jul 2018 19:02:19 +0200 Kim Alvefur net.server: Set default read timeout to 14 minutes (fixes #971)
Wed, 09 May 2018 16:15:40 +0200 Kim Alvefur net.server: Add watchfd, a simple API for watching file descriptors
Tue, 10 Apr 2018 20:41:03 +0100 Matthew Wild net.server_event: Don't close servers if just quitting the loop once
Sun, 04 Feb 2018 01:51:25 +0100 Kim Alvefur Fix spelling throughout the codebase [codespell]
Fri, 23 Feb 2018 15:41:12 +0000 Matthew Wild net.server_event: Not every instantly-readable connection is an error, continue if possible
Fri, 23 Feb 2018 15:33:02 +0000 Matthew Wild net.server_event: Better outgoing connection error handling
Fri, 10 Nov 2017 05:50:03 +0100 Kim Alvefur net.server_event: Split long line [luacheck]
Mon, 09 Oct 2017 02:22:33 +0200 Kim Alvefur net.server_event: Add "libevent" to backend description
Wed, 04 Jan 2017 13:18:06 +0100 Kim Alvefur Merge 0.10->trunk
Wed, 04 Jan 2017 11:24:48 +0100 Kim Alvefur net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG)
Sat, 08 Oct 2016 21:07:12 +0200 Kim Alvefur Merge 0.10->trunk
Sat, 08 Oct 2016 14:07:07 +0200 Kim Alvefur net.server_event: Restore destruction of socket on read timeout (lost since e67891ad18d6) (thanks Ge0rG)
Wed, 04 May 2016 16:58:25 +0200 Kim Alvefur Merge 0.10->trunk
Wed, 04 May 2016 15:29:11 +0200 Kim Alvefur net.server_event: Schedule another read callback if there is still data left in buffer after reading (fixes #583 for real)
Wed, 04 May 2016 15:20:33 +0200 Kim Alvefur net.server_event: Collect entire one line function on one line
Tue, 19 Apr 2016 19:00:46 +0200 Kim Alvefur Merge 0.10->trunk
Tue, 19 Apr 2016 19:00:19 +0200 Kim Alvefur Merge 0.9->0.10
Tue, 19 Apr 2016 18:58:30 +0200 Kim Alvefur net.server_event: Check the buffer *length*, not the buffer itself (Fixes 100% cpu usage introduced in 65abd9d7bf88)
Tue, 19 Apr 2016 18:23:44 +0200 Kim Alvefur Merge 0.10->trunk
Tue, 19 Apr 2016 18:23:02 +0200 Kim Alvefur Merge 0.9->0.10
Tue, 19 Apr 2016 18:20:39 +0200 Kim Alvefur net.server_event: Return the correct value as timeout
Tue, 19 Apr 2016 18:18:57 +0200 Kim Alvefur net.server_event: Fix traceback if event re-added during starttls
Tue, 19 Apr 2016 17:32:22 +0200 Kim Alvefur Merge 0.10->trunk
Tue, 19 Apr 2016 17:30:30 +0200 Kim Alvefur Merge 0.9->0.10
Tue, 19 Apr 2016 17:24:00 +0200 Kim Alvefur net.server_event: Re-add write event if writebuffer is non-empty after write (eg due to writes from ondrain callback) (fixes #661)
Wed, 06 Apr 2016 14:50:34 +0200 Kim Alvefur Merge 0.10->trunk
Wed, 18 Dec 2013 18:11:47 -0500 daurnimator server_event: addclient: wrapclient already calls startconnection for us [backported from trunk]
Tue, 05 Apr 2016 20:54:43 +0200 Kim Alvefur Merge 0.10->trunk
Tue, 05 Apr 2016 20:41:50 +0200 Kim Alvefur server_event: Split long list of assignments into multiple lines for readability
Tue, 05 Apr 2016 20:39:36 +0200 Kim Alvefur server_event: Fix indentation (again)
Wed, 02 Mar 2016 16:34:34 +0100 Kim Alvefur Merge 0.10->trunk
Wed, 02 Mar 2016 16:32:37 +0100 Kim Alvefur Merge 0.9->0.10
Wed, 02 Mar 2016 16:30:46 +0100 Kim Alvefur net.server_event: Return true from conn:resume() to indicate success
Wed, 02 Mar 2016 16:30:05 +0100 Kim Alvefur net.server_event: Prevent resuming connections without readcallback, eg closed connections (fixes #590)
Sat, 02 Jan 2016 20:42:53 +0000 Matthew Wild Merge 0.10->trunk
Sat, 02 Jan 2016 20:40:34 +0000 Matthew Wild net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() )
Sun, 22 Nov 2015 17:00:43 +0100 Kim Alvefur net.server_event: Return event handle from add_task so it can be closed by eg util.timer
Fri, 25 Sep 2015 18:07:08 +0200 Kim Alvefur server_event: Remove needless scoping around add_task
Fri, 25 Sep 2015 18:03:44 +0200 Kim Alvefur Merge 0.10->trunk
Fri, 25 Sep 2015 17:56:21 +0200 Kim Alvefur server_event: Fix indentation
Fri, 25 Sep 2015 17:55:06 +0200 Kim Alvefur server_event: Put function keyword on same line as the coroutine.wrap it's being passed to
Fri, 25 Sep 2015 17:43:21 +0200 Kim Alvefur server_event: Normalize indentation
Fri, 25 Sep 2015 17:26:47 +0200 Kim Alvefur server_event: Remove unused argument [luacheck]
Fri, 25 Sep 2015 17:26:29 +0200 Kim Alvefur server_event: Comment out the unused vdebug function [luacheck]
Fri, 25 Sep 2015 17:24:43 +0200 Kim Alvefur server_event: Remove unused former argument (fixes global access) [luacheck]
Fri, 25 Sep 2015 17:21:00 +0200 Kim Alvefur server_event: Rename luaevent module variable to avoid name clash [luacheck]
Fri, 25 Sep 2015 17:25:46 +0200 Kim Alvefur server_event: Add luacheck annotations
Fri, 25 Sep 2015 17:12:55 +0200 Kim Alvefur server_event: Remove needless scoping and indentation
Fri, 25 Sep 2015 17:02:17 +0200 Kim Alvefur server_event: Move local references to various functions to top of file
Fri, 25 Sep 2015 16:45:02 +0200 Kim Alvefur server_event: Replace implementation of ordered set with a simple table set
Thu, 03 Sep 2015 16:43:46 +0100 Matthew Wild Merge 0.10->trunk
Mon, 23 Dec 2013 17:57:53 +0100 Kim Alvefur 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)
Mon, 23 Dec 2013 17:55:41 +0100 Kim Alvefur net.server_{select,event}: addclient: Add argument for overriding socket type
Wed, 18 Dec 2013 18:11:17 -0500 daurnimator net/server_event: pcall require ssl rather than relying on globals
Wed, 18 Dec 2013 17:52:28 -0500 daurnimator net/server_event: add_client should have same arguments no-matter the server backend
Thu, 20 Aug 2015 13:05:22 +0200 Kim Alvefur Merge 0.10->trunk
Mon, 23 Feb 2015 12:04:43 +0100 Kim Alvefur net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present in the globals table
Mon, 20 Oct 2014 16:13:24 -0400 daurnimator Move timer code out of util.timer and into relevant net.server backends
Tue, 02 Sep 2014 22:34:32 +0200 Kim Alvefur Merge 0.10->trunk
Tue, 02 Sep 2014 22:33:11 +0200 Kim Alvefur Merge 0.9->0.10
Fri, 29 Aug 2014 11:39:56 +0100 Matthew Wild net.server_{select,event}: Add 'ondetach' callback for listener objects, to notify them when another listener is being assigned to a connection
Fri, 25 Jul 2014 13:54:47 +0100 Matthew Wild Merge 0.10->trunk
Fri, 25 Jul 2014 13:54:27 +0100 Matthew Wild Merge 0.9->0.10
Fri, 25 Jul 2014 13:53:39 +0100 Matthew Wild net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data
Wed, 25 Jun 2014 12:15:00 -0400 daurnimator net/server_*: Fix addclient: LuaSocket 3.0-rc1 sometimes returns EALREADY instead of EINPROGRESS when the dns lookup has multiple results
Wed, 02 Apr 2014 17:42:22 +0100 Matthew Wild Merge 0.10->trunk
Wed, 02 Apr 2014 17:41:38 +0100 Matthew Wild Merge 0.9->0.10
Tue, 01 Apr 2014 15:26:40 +0200 Kim Alvefur net.server_{select,event}: Add compat code for supporting the same client port API on connections
Mon, 31 Mar 2014 19:38:06 +0200 Kim Alvefur Backed out changeset a5b5bce71a11
Thu, 27 Mar 2014 23:02:52 +0100 Kim Alvefur net.server_event: Rename conn:port() -> conn:clientport() to match server_select
Mon, 23 Dec 2013 23:23:59 +0100 Kim Alvefur net.server_{select,event}: addclient: Handle missing getaddrinfo
Mon, 23 Dec 2013 17:57:53 +0100 Kim Alvefur 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)
Mon, 23 Dec 2013 17:55:41 +0100 Kim Alvefur net.server_{select,event}: addclient: Add argument for overriding socket type
Wed, 18 Dec 2013 18:11:47 -0500 daurnimator net/server: addclient: wrapclient already calls startconnection for us
Wed, 18 Dec 2013 18:11:17 -0500 daurnimator net/server_event: pcall require ssl rather than relying on globals
Wed, 18 Dec 2013 17:52:28 -0500 daurnimator net/server_event: add_client should have same arguments no-matter the server backend
Fri, 09 Aug 2013 17:48:21 +0200 Florian Zeitz Remove all trailing whitespace
Mon, 22 Jul 2013 20:29:41 +0200 Kim Alvefur Merge 0.9->trunk
Mon, 22 Jul 2013 18:17:30 +0200 Kim Alvefur net.server_event: Pass ondrain handler from listener
Fri, 24 May 2013 14:46:16 +0100 Matthew Wild net.server_event: Add support for listener.onreadtimeout(conn), which can return true to prevent the connection from being closed when a read timeout occurs
Sat, 27 Apr 2013 22:46:01 +0200 Kim Alvefur net.server*: Allow the TCP backlog parameter to be set in the config
Fri, 01 Mar 2013 14:15:38 +0100 Kim Alvefur net.server_event: Remove unused local
Sun, 06 Jan 2013 04:55:53 +0500 Waqas Hussain net.server_event: Optimize socket write buffers (don't do buf=buf..newdata).
Fri, 28 Dec 2012 14:26:21 +0100 Kim Alvefur net.server_event: Destroy interfaces immediately, fixes reopening of servers.
Fri, 28 Dec 2012 14:25:11 +0100 Kim Alvefur net.server_event: Remove comments about not closing event handlers from within callbacks, fixed in luaevent
Thu, 26 Jul 2012 16:46:18 +0100 Matthew Wild net.server_event: Replace usage of string.len() with # operator
Wed, 25 Jul 2012 20:33:20 +0200 Kim Alvefur net.server_event: Don't emit empty packets, check for errors first. (fixes #287)
Sun, 22 Jul 2012 23:45:53 +0100 Matthew Wild net.server_event: Remove unused variables and imports
Sun, 22 Jul 2012 16:54:33 +0100 Matthew Wild 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)
Thu, 24 May 2012 03:33:14 +0100 Matthew Wild net.server_event: Internal changes to get plain-SSL outgoing connections working (as for HTTPS)
Thu, 24 May 2012 02:55:37 +0100 Matthew Wild net.server_event: Assume wrapclient() is taking a new connection, and call onconnect when appropriate (to match server_select)
Tue, 24 Apr 2012 15:52:30 +0100 Matthew Wild net.server_event: Do not automatically close clients when closing a server port
Mon, 16 Jan 2012 04:44:23 +0000 Matthew Wild net.server_event: Fix :pause() to actually stop reading from the socket, rather than ignoring socket-readable events (!), and :resume() to restart the event listener
Fri, 14 Oct 2011 00:46:29 +0500 Waqas Hussain net.server_event, net.server_select: Fixed some global pollution.
Sat, 03 Sep 2011 02:42:50 +0500 Waqas Hussain net.server_event: Don't call listener.onincoming with data=nil when listener.onconnect is missing. onincoming's arguments shall always be non-nil.
Tue, 11 Jan 2011 05:04:08 +0000 Matthew Wild net.server_select, net.server_event: Silence 'error during ssl handshake' for wantread and wantwrite
Thu, 06 Jan 2011 13:47:20 +0000 Matthew Wild net.server_event: Log interface and port number when binding fails
Sun, 21 Nov 2010 21:02:31 -0800 Paul Aurich net.server_event: API parity with net.server_socket
Sun, 22 Aug 2010 21:12:22 +0100 Matthew Wild net.server_select, net.server_event: Remove set_mode() call from server.link()... it can cause the last chunk of data to be discarded if shorter than buffersize (thanks to Zash for the debugging)
Mon, 02 Aug 2010 09:21:14 +0100 Matthew Wild net.server_event: Remove some debug messages
Thu, 22 Jul 2010 11:43:42 +0100 Matthew Wild net.server_event: Fix to not call onconnect a second time after the SSL handshake for starttls connections (thanks Flo)
Sat, 17 Jul 2010 15:17:02 +0100 Matthew Wild net.server_event: Remove debug logging from dummy onstatus handler
Fri, 11 Jun 2010 20:35:10 +0500 Waqas Hussain net.server_event: attemp to fix more spelling fail.
Wed, 02 Jun 2010 21:33:44 +0100 Matthew Wild net.server_event: Also return the socket from wrapclient, to maintain compatibility with server_select (thanks uhoreg)
Wed, 05 May 2010 15:25:48 +0100 Matthew Wild net.server_select, net.server_event: Add server.link() to link 2 connections with an intermediate buffer of the specified size
Wed, 05 May 2010 15:24:24 +0100 Matthew Wild net.server_select, net.server_event: Support for ondrain listener callback for when send buffer is empty
Wed, 05 May 2010 15:23:17 +0100 Matthew Wild net.server_select, net.server_event: Rename :pattern() method to :set_mode() for select backend, and add :set_mode() to event backend
Wed, 05 May 2010 15:21:17 +0100 Matthew Wild net.server_select, net.server_event: Support for :pause() and :resume() on connections
Wed, 05 May 2010 11:24:45 +0100 Matthew Wild net.server_event: Be sure to fire onincoming for backwards-compatibility with pre-onconnect listeners (thanks darkrain/mod_console)
Sun, 11 Apr 2010 01:29:59 +0100 Matthew Wild net.server_event: Call listener.onconnect if it exists, otherwise stick to listener.onincoming
Fri, 26 Mar 2010 08:24:29 +0500 Waqas Hussain net.server_event: Fixed spelling fail.
Thu, 25 Mar 2010 12:32:25 +0000 Matthew Wild net.server_event: Don't re-try a write if the connection closed (thanks Flo)
Wed, 24 Mar 2010 22:46:57 +0000 Matthew Wild net.server_event: Bump timeout values up somewhat
Mon, 01 Mar 2010 18:46:37 +0000 Matthew Wild net.server_event: Fix some global accesses
Mon, 01 Mar 2010 16:45:13 +0000 Matthew Wild net.server_event: Improve and fix potential traceback in logging of new incoming connections
Thu, 25 Feb 2010 02:01:00 +0000 Matthew Wild net.server_event: Add lock_read() method to connections
Thu, 18 Feb 2010 16:41:53 +0000 Matthew Wild net.server_event: Pass false as connection error to disconnect handler if close was initiated by us
Wed, 17 Feb 2010 13:21:33 +0000 Matthew Wild net.server_event: Increase SSL handshake timeout to 30s, make handshake round-trip count configurable, and bump connect timeout to 20s (thanks Flo)
Sun, 14 Feb 2010 20:47:09 +0000 Matthew Wild net.server_event: Fire onincoming() callback for new connections as opposed to the new onconnect() - let's change this for a future version though
Sun, 14 Feb 2010 20:36:54 +0000 Matthew Wild net.server_event: Fix another instance of creating an SSL context - certmanager now does this
Sun, 14 Feb 2010 20:15:17 +0000 Matthew Wild net.server_event: Fix traceback in creating SSL context
Thu, 11 Feb 2010 21:32:49 +0000 Matthew Wild net.server_event: Fixes for traceback with no LuaSec
Sun, 31 Jan 2010 19:58:52 +0000 Matthew Wild net.server_event: Update for compatibility with new server API
Fri, 29 Jan 2010 16:49:43 +0000 Matthew Wild net.server_event: Trailing whitespace
Fri, 29 Jan 2010 16:46:28 +0000 Matthew Wild net.server_event: Support :setlistener() method on connections to work with port multiplexing
Thu, 21 Jan 2010 12:56:08 +0000 Matthew Wild net.server_{select,event}: Fail gracefully if socket doesn't have a setoption method (LuaSec issue I think)
Thu, 21 Jan 2010 12:23:13 +0000 Matthew Wild net.server_event: Replace all calls to _start_ssl() to its bigger brother starttls() - fixes 5223 w/ libevent
Mon, 18 Jan 2010 18:20:03 +0000 Matthew Wild net.server_event: Remove access to starttls method when starttls is negotiated - fixes offering starttls to client who are already using it (thanks darkrain and Adium)
Tue, 12 Jan 2010 15:16:22 +0000 Matthew Wild net.server_event: Add conn:setoption() to set options on the socket
Sun, 10 Jan 2010 15:25:19 +0000 Matthew Wild net.server_event: Add server.hook_signal(signal_num, handler) to wrap libevent's signal-catching interface
Thu, 17 Dec 2009 20:30:41 +0000 Matthew Wild net.server_event: Add properties like _ip and _port to server objects too
Thu, 17 Dec 2009 20:30:10 +0000 Matthew Wild net.server_event: Add :serverport() method to be compatible with old API
Thu, 17 Dec 2009 16:53:28 +0000 Matthew Wild net.server_event: Load ssl/socket libraries if not already available
Tue, 08 Dec 2009 01:22:54 +0000 Matthew Wild net.server_event: Add get_backend() method
Mon, 07 Dec 2009 19:26:50 +0000 Matthew Wild Rename closeallservers to closeall in the public API (same as net.server_select) and expose setquitting
Mon, 07 Dec 2009 19:26:12 +0000 Matthew Wild net.server_event: Add setquitting() function to be compatible with net.server_select
Mon, 07 Dec 2009 19:25:16 +0000 Matthew Wild net.server_event: Fix closeallservers() to work correctly after the giant refactorizification
Mon, 07 Dec 2009 18:42:31 +0000 Matthew Wild net.server_event: Return "quitting" on loop exit to be compatible with net.server_select, and give Prosody a way to know why the loop broke
Fri, 04 Dec 2009 03:07:17 +0000 Matthew Wild net.server_select, net.server_event: Convert to unix line endings from Windows
Thu, 03 Dec 2009 02:30:09 +0000 Matthew Wild net.server_event: Port fix in 2dc9bbf25447 to libevent-based backend
Thu, 26 Nov 2009 22:25:13 +0000 Matthew Wild net.server_event: Add addclient/wrapclient compatible with server_select, DNS and s2s should now work with libevent \o/
Thu, 26 Nov 2009 22:23:51 +0000 Matthew Wild net.server_event: tostring() some debug logging parameters
Thu, 26 Nov 2009 22:22:03 +0000 Matthew Wild net.server_event: Add set_send() for compatibility with server_select
Thu, 26 Nov 2009 22:21:12 +0000 Matthew Wild net.server_event: Hide starttls function when the connection is not SSL-enabled
Thu, 26 Nov 2009 22:19:49 +0000 Matthew Wild net.server_event: Count the number of client connections *upwards* :)
Thu, 26 Nov 2009 22:18:44 +0000 Matthew Wild net.server_handler: Add stub handlers as fallbacks for those listeners don't implement
Thu, 26 Nov 2009 22:15:40 +0000 Matthew Wild net.server_event: Fix to make ontimeout() listener callback work
Sun, 22 Nov 2009 04:09:57 +0000 Matthew Wild net.server_event: Comment accidentally uncommented vdebug()
Sun, 22 Nov 2009 04:08:11 +0000 Matthew Wild net.server_event: Handle and ignore 'wantread' error from receive(), treat as a timeout
Sun, 22 Nov 2009 04:06:40 +0000 Matthew Wild net.server_event: Remove premature non-optimisation
Sun, 22 Nov 2009 04:06:00 +0000 Matthew Wild net.server_event: Fix moved line caused by Mercurial's crecord and my selective commits
Sun, 22 Nov 2009 04:04:04 +0000 Matthew Wild net.server_event: Obey nowriting/nointerface for locks in interface methods
Sun, 22 Nov 2009 03:58:37 +0000 Matthew Wild net.server_event: Use conn property for send/receive instead of caching, fixes trying to use original socket after SSL-wrapping
Sun, 22 Nov 2009 03:55:48 +0000 Matthew Wild net.server_event: Set startsslcallback property to nil when we're done handshaking, otherwise we keep trying to repeat the handshake
Sun, 22 Nov 2009 03:53:44 +0000 Matthew Wild net.server_event: Add set_sslctx() method to connections
Sun, 22 Nov 2009 03:53:07 +0000 Matthew Wild net.server_event: conn.usingssl -> conn._usingssl
Sun, 22 Nov 2009 03:51:31 +0000 Matthew Wild net.server_event: Use correct listener callbacks
Sun, 22 Nov 2009 03:49:47 +0000 Matthew Wild net.server_event: Small whitespace fixes
Sun, 22 Nov 2009 03:48:04 +0000 Matthew Wild net.server_event: Correct a few instances of .sslctx to ._sslctx
Sun, 22 Nov 2009 03:44:15 +0000 Matthew Wild net.server_event: Call connection's onconnect, no need to pass closures around now
Sun, 22 Nov 2009 03:42:45 +0000 Matthew Wild net.server_event: Use connection id in all relevant logging
Sun, 22 Nov 2009 03:20:35 +0000 Matthew Wild net.server_event: Define id property for connection objects, to aid logging
Sun, 22 Nov 2009 03:14:32 +0000 Matthew Wild net.server_event: Define vdebug function for convenience
Sat, 21 Nov 2009 17:23:51 +0000 Matthew Wild net.server_event: Change to new standard addserver() syntax
Sat, 21 Nov 2009 03:15:59 +0000 Matthew Wild net.server_event: Export base as event_base
Sat, 21 Nov 2009 02:41:09 +0000 Matthew Wild net.server_event: Comment overly verbose log message
Fri, 20 Nov 2009 23:24:41 +0000 Matthew Wild net.server_event: Remove redundant getid() function
Fri, 20 Nov 2009 22:58:56 +0000 Matthew Wild net.server_event: Initial commit of server_event.lua. Don't get too excited, it's not used at all yet, and is still incomplete :)