Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net.server_select: Remove extraneous variable | Matthew Wild | 2012-07-22 | 1 | -1/+0 |
| | |||||
* | net.server_select: Never call ondisconnect() directly, go via ↵ | Matthew Wild | 2012-07-22 | 1 | -14/+11 |
| | | | | handler:close() or handler:force_close() - fixes cases where ondisconnect() could be called multiple times for the same connection, leading to issues with s2sout retry logic. | ||||
* | net.server_select, net.server_event: Change semantics of conn:close() - ↵ | Matthew Wild | 2012-07-22 | 1 | -18/+24 |
| | | | | always call ondisconnect (with err == nil), and never close with data in send buffer (i.e. 'now' parameter removed) | ||||
* | net.server_select: Don't close client connections when closing a server (it ↵ | Matthew Wild | 2012-05-23 | 1 | -7/+1 |
| | | | | wasn't working anyway) | ||||
* | net.server_select: Call ondisconnect handler, even if we closed the socket ↵ | Matthew Wild | 2012-05-23 | 1 | -0/+4 |
| | | | | ourselves (fixes HTTP session hoarding, thanks Maranda) | ||||
* | net.server_select: Return error when SSL handshake fails immediately (thanks ↵ | Matthew Wild | 2012-05-18 | 1 | -3/+6 |
| | | | | Zash) | ||||
* | net.server, net.timer, net.server_select: Rearrange dependencies between ↵ | Matthew Wild | 2012-05-03 | 1 | -2/+1 |
| | | | | these three modules. server.addtimer() is no longer a public function (renamed to _addtimer) and is not available at all from server_event (compat code removed to prevent traceback) (thanks Nulani) | ||||
* | net.server_select: Remove server from _server table when closing | Matthew Wild | 2012-04-24 | 1 | -0/+1 |
| | |||||
* | net.server_select: Autostart SSL negotiation as the last part of socket ↵ | Matthew Wild | 2011-11-28 | 1 | -12/+10 |
| | | | | setup to avoid a traceback (#262) (thanks Maranda) | ||||
* | net.server_event, net.server_select: Fixed some global pollution. | Waqas Hussain | 2011-10-14 | 1 | -2/+2 |
| | |||||
* | net.server_select: Minor whitespace fix. | Waqas Hussain | 2011-10-13 | 1 | -1/+1 |
| | |||||
* | net.server_select: Never call onincoming with nil data when a listener ↵ | Matthew Wild | 2011-09-27 | 1 | -2/+5 |
| | | | | doesn't have an onconnect handler | ||||
* | net.server_select: Remove socket from sendlist before calling listener ↵ | Matthew Wild | 2011-08-20 | 1 | -1/+1 |
| | | | | callbacks (thanks darkrain) | ||||
* | net.server_select: Merge straight-SSL and starttls code paths, also fixes ↵ | Matthew Wild | 2011-08-20 | 1 | -69/+57 |
| | | | | onconnect being called before handshake completion for straight-SSL | ||||
* | net.server_select: Update error logging logic during SSL handshake (now ↵ | Matthew Wild | 2011-08-20 | 1 | -3/+3 |
| | | | | shows correctly when a handshake exceeded max. allowed iterations) | ||||
* | net.server_select: Small fix to SSL handshake logic, read/wrote were being ↵ | Matthew Wild | 2011-08-20 | 1 | -4/+3 |
| | | | | checked despite it not being possible for them to be other than nil | ||||
* | net.server_select: Do not set 'ssl' flag simply when assigning an sslctx to ↵ | Matthew Wild | 2011-08-20 | 1 | -1/+0 |
| | | | | a handler, it doesn't mean anything | ||||
* | connlistener, server_select, prosody: Add support for binding to multiple ↵ | Florian Zeitz | 2011-06-15 | 1 | -12/+12 |
| | | | | addresses | ||||
* | net.server_select: Expose step() function (thanks Łukasz) | Matthew Wild | 2011-02-14 | 1 | -0/+1 |
| | |||||
* | net.server_select, net.server_event: Silence 'error during ssl handshake' ↵ | Matthew Wild | 2011-01-11 | 1 | -1/+1 |
| | | | | for wantread and wantwrite | ||||
* | net/server_select.lua: Reduce select() timeout back to 1s | Matthew Wild | 2010-12-18 | 1 | -1/+1 |
| | |||||
* | net.server_select: Set select() timeout to 3600 by default. | Waqas Hussain | 2010-12-02 | 1 | -1/+1 |
| | |||||
* | net.server_select: Made another global local. | Waqas Hussain | 2010-12-02 | 1 | -0/+1 |
| | |||||
* | net.server_select: Made some globals local. | Waqas Hussain | 2010-12-02 | 1 | -0/+3 |
| | |||||
* | net.server_select: Make changes required for sub-second timer precision. | Waqas Hussain | 2010-12-02 | 1 | -7/+14 |
| | |||||
* | net.server_select: Restore real sendbuffer() before calling onconnect ↵ | Matthew Wild | 2010-10-22 | 1 | -1/+1 |
| | | | | handler, in case onconnect sends data and the socket is still writeable (causing stack overflow into sendbuffer()/onconnect()) | ||||
* | net.server_select: Add server.step() to run through a single iteration of ↵ | Matthew Wild | 2010-09-09 | 1 | -6/+12 |
| | | | | the event loop | ||||
* | net.server_select, net.server_event: Remove set_mode() call from ↵ | Matthew Wild | 2010-08-22 | 1 | -1/+0 |
| | | | | server.link()... it can cause the last chunk of data to be discarded if shorter than buffersize (thanks to Zash for the debugging) | ||||
* | net.server_select: Remove 'now' parameter from starttls(), and base it on ↵ | Matthew Wild | 2010-07-22 | 1 | -4/+4 |
| | | | | whether the sendbuffer is empty instead | ||||
* | net.server_select: Ensure that onconnect is called for server sockets as ↵ | Matthew Wild | 2010-07-16 | 1 | -11/+13 |
| | | | | well as clients, rather than onincoming. Fixes mod_console traceback, issue #197 | ||||
* | net.server_select: Clean up buffer and fire drained callback on successful ↵ | Matthew Wild | 2010-07-02 | 1 | -1/+1 |
| | | | | write before we try and start TLS negotiation (if negotiation fails instantly then we can be left without a handler to use for cleanup) (thanks dersd) | ||||
* | net.server_select: Fix a snippet of code that was living at the wrong ↵ | Matthew Wild | 2010-07-02 | 1 | -3/+3 |
| | | | | indentation level | ||||
* | net.server_select: Fix typo affecting connections with an onconnect listener ↵ | Matthew Wild | 2010-05-05 | 1 | -1/+1 |
| | | | | that have data pending in the sendbuffer | ||||
* | net.server_select, net.server_event: Add server.link() to link 2 connections ↵ | Matthew Wild | 2010-05-05 | 1 | -0/+23 |
| | | | | with an intermediate buffer of the specified size | ||||
* | net.server_select, net.server_event: Support for ondrain listener callback ↵ | Matthew Wild | 2010-05-05 | 1 | -1/+6 |
| | | | | for when send buffer is empty | ||||
* | net.server_select, net.server_event: Rename :pattern() method to :set_mode() ↵ | Matthew Wild | 2010-05-05 | 1 | -1/+1 |
| | | | | for select backend, and add :set_mode() to event backend | ||||
* | net.server_select, net.server_event: Support for :pause() and :resume() on ↵ | Matthew Wild | 2010-05-05 | 1 | -0/+7 |
| | | | | connections | ||||
* | net.server_select: Support for listener.onconnect | Matthew Wild | 2010-04-11 | 1 | -1/+10 |
| | |||||
* | Merge 0.6->0.7 | Matthew Wild | 2010-04-09 | 1 | -1/+1 |
| | |||||
* | Merge 0.6->0.7 | Matthew Wild | 2010-03-22 | 1 | -1/+1 |
| | |||||
* | net.server_select: Fix for traceback when a read returns an error and no ↵ | Matthew Wild | 2010-03-05 | 1 | -1/+1 |
| | | | | data (thanks dersd) | ||||
* | net.server_select: Fix typo | Matthew Wild | 2010-03-01 | 1 | -1/+1 |
| | |||||
* | net.server_select: Fix calling method of some handler.close()s | Matthew Wild | 2010-03-01 | 1 | -4/+4 |
| | |||||
* | net.server_select: Small indentation fix | Matthew Wild | 2010-02-11 | 1 | -1/+1 |
| | |||||
* | net.server_select: Fix traceback with no LuaSec available (thanks Nolan) | Matthew Wild | 2010-02-11 | 1 | -3/+5 |
| | |||||
* | net.server_select: Only allow starttls if luasec is available (thanks Nolan) | Matthew Wild | 2010-02-10 | 1 | -55/+57 |
| | |||||
* | net.server_select: *Major* whitespace refactoring to meet Prosody's coding ↵ | Matthew Wild | 2010-02-10 | 1 | -654/+655 |
| | | | | style guidelines, we now have tabs | ||||
* | net.server_select: listener.status -> listener.onstatus for consistency | Matthew Wild | 2010-01-31 | 1 | -1/+2 |
| | |||||
* | net.server_select: Report whether a new listener uses SSL or not in the log ↵ | Matthew Wild | 2010-01-31 | 1 | -1/+1 |
| | | | | message | ||||
* | net.server_select: Remove startssl parameter to the client/server creation ↵ | Matthew Wild | 2010-01-31 | 1 | -117/+61 |
| | | | | functions - passing a sslctx now indicates you want to use SSL from the start |