aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
Commit message (Collapse)AuthorAgeFilesLines
...
* net/server_select.lua: Reduce select() timeout back to 1sMatthew Wild2010-12-181-1/+1
|
* net.server_select: Set select() timeout to 3600 by default.Waqas Hussain2010-12-021-1/+1
|
* net.server_select: Made another global local.Waqas Hussain2010-12-021-0/+1
|
* net.server_select: Made some globals local.Waqas Hussain2010-12-021-0/+3
|
* net.server_select: Make changes required for sub-second timer precision.Waqas Hussain2010-12-021-7/+14
|
* net.server_select: Restore real sendbuffer() before calling onconnect ↵Matthew Wild2010-10-221-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 Wild2010-09-091-6/+12
| | | | the event loop
* net.server_select, net.server_event: Remove set_mode() call from ↵Matthew Wild2010-08-221-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 Wild2010-07-221-4/+4
| | | | whether the sendbuffer is empty instead
* net.server_select: Ensure that onconnect is called for server sockets as ↵Matthew Wild2010-07-161-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 Wild2010-07-021-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 Wild2010-07-021-3/+3
| | | | indentation level
* net.server_select: Fix typo affecting connections with an onconnect listener ↵Matthew Wild2010-05-051-1/+1
| | | | that have data pending in the sendbuffer
* net.server_select, net.server_event: Add server.link() to link 2 connections ↵Matthew Wild2010-05-051-0/+23
| | | | with an intermediate buffer of the specified size
* net.server_select, net.server_event: Support for ondrain listener callback ↵Matthew Wild2010-05-051-1/+6
| | | | for when send buffer is empty
* net.server_select, net.server_event: Rename :pattern() method to :set_mode() ↵Matthew Wild2010-05-051-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 Wild2010-05-051-0/+7
| | | | connections
* net.server_select: Support for listener.onconnectMatthew Wild2010-04-111-1/+10
|
* Merge 0.6->0.7Matthew Wild2010-04-091-1/+1
|
* Merge 0.6->0.7Matthew Wild2010-03-221-1/+1
|
* net.server_select: Fix for traceback when a read returns an error and no ↵Matthew Wild2010-03-051-1/+1
| | | | data (thanks dersd)
* net.server_select: Fix typoMatthew Wild2010-03-011-1/+1
|
* net.server_select: Fix calling method of some handler.close()sMatthew Wild2010-03-011-4/+4
|
* net.server_select: Small indentation fixMatthew Wild2010-02-111-1/+1
|
* net.server_select: Fix traceback with no LuaSec available (thanks Nolan)Matthew Wild2010-02-111-3/+5
|
* net.server_select: Only allow starttls if luasec is available (thanks Nolan)Matthew Wild2010-02-101-55/+57
|
* net.server_select: *Major* whitespace refactoring to meet Prosody's coding ↵Matthew Wild2010-02-101-654/+655
| | | | style guidelines, we now have tabs
* net.server_select: listener.status -> listener.onstatus for consistencyMatthew Wild2010-01-311-1/+2
|
* net.server_select: Report whether a new listener uses SSL or not in the log ↵Matthew Wild2010-01-311-1/+1
| | | | message
* net.server_select: Remove startssl parameter to the client/server creation ↵Matthew Wild2010-01-311-117/+61
| | | | functions - passing a sslctx now indicates you want to use SSL from the start
* net.server_{select,event}: Fail gracefully if socket doesn't have a ↵Matthew Wild2010-01-211-1/+4
| | | | setoption method (LuaSec issue I think)
* net.server_select: Add conn:setoption() to set options on the socketMatthew Wild2010-01-121-0/+3
|
* net.server_select: Fix oops in last commitMatthew Wild2010-01-061-1/+1
|
* net.server_select: Allow setting the logger using server.setloggerMatthew Wild2010-01-061-0/+9
|
* net.server_select: Add get_backend() methodMatthew Wild2009-12-081-0/+5
|
* net.server_select, net.server_event: Convert to unix line endings from WindowsMatthew Wild2009-12-041-921/+921
|
* net.server_select: Restore checks for wantread/timeout errors on receiveMatthew Wild2009-12-031-1/+1
|
* net.server_select: Add a function to just lock a stream for readingSjoerd Simons2009-12-031-10/+17
|
* net.server_select: Make bufferlen() method return, of all things, the buffer ↵Matthew Wild2009-12-031-1/+1
| | | | length
* net.server_select: Fix possibility of losing data sent from a socket just ↵Matthew Wild2009-12-031-1/+1
| | | | before it closes (thanks Sjoerd Simons)
* net.server_select: Update conn.close() to use new connection method conventionMatthew Wild2009-11-281-1/+1
|
* net.server_select: Rename server.setsend() to server.set_send() for consistencyMatthew Wild2009-11-261-1/+1
|
* net.server_select: Bring up to date to new common connection APIMatthew Wild2009-11-221-24/+24
|
* net.server_select: Change addserver() parameters to be compatible with new ↵Matthew Wild2009-11-211-2/+2
| | | | standard syntax
* net.server: Rename to net.server_selectMatthew Wild2009-11-211-0/+914