aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.10->trunkMatthew Wild2014-07-251-0/+1
|\
| * Merge 0.9->0.10Matthew Wild2014-07-251-0/+1
| |\
| | * net.server_select/event: Switch sender mode to *a when reading, to make sure ↵Matthew Wild2014-07-251-0/+1
| | | | | | | | | | | | we get all available data
* | | net/server_*: Fix addclient: LuaSocket 3.0-rc1 sometimes returns EALREADY ↵daurnimator2014-06-251-1/+1
| | | | | | | | | | | | instead of EINPROGRESS when the dns lookup has multiple results
* | | Merge 0.10->trunkMatthew Wild2014-04-021-0/+1
|\| |
| * | Merge 0.9->0.10Matthew Wild2014-04-021-77/+80
| |\ \ | | |/ | |/|
| * | net.server_{select,event}: Add compat code for supporting the same client ↵Kim Alvefur2014-04-011-0/+1
| | | | | | | | | | | | port API on connections
| * | Backed out changeset a5b5bce71a11Kim Alvefur2014-03-311-1/+1
| | |
| * | net.server_event: Rename conn:port() -> conn:clientport() to match server_selectKim Alvefur2014-03-271-1/+1
| | |
* | | net.server_{select,event}: addclient: Handle missing getaddrinfoKim Alvefur2013-12-231-4/+2
| | |
* | | net.server_{select,event}: addclient: Use getaddrinfo to detect IP address ↵Kim Alvefur2013-12-231-1/+8
| | | | | | | | | | | | type if no socket type argument given. (Argument must be given for non-TCP)
* | | net.server_{select,event}: addclient: Add argument for overriding socket typeKim Alvefur2013-12-231-4/+13
| | |
* | | net/server: addclient: wrapclient already calls startconnection for usdaurnimator2013-12-181-2/+1
| | |
* | | net/server_event: pcall require ssl rather than relying on globalsdaurnimator2013-12-181-19/+11
| | |
* | | net/server_event: add_client should have same arguments no-matter the server ↵daurnimator2013-12-181-21/+6
| |/ |/| | | | | backend
* | Remove all trailing whitespaceFlorian Zeitz2013-08-091-28/+28
| |
* | Merge 0.9->trunkKim Alvefur2013-07-221-0/+1
|\|
| * net.server_event: Pass ondrain handler from listenerKim Alvefur2013-07-221-0/+1
| |
* | net.server_event: Add support for listener.onreadtimeout(conn), which can ↵Matthew Wild2013-05-241-49/+52
|/ | | | return true to prevent the connection from being closed when a read timeout occurs
* net.server*: Allow the TCP backlog parameter to be set in the configKim Alvefur2013-04-271-0/+1
|
* net.server_event: Remove unused localKim Alvefur2013-03-011-1/+0
|
* net.server_event: Optimize socket write buffers (don't do buf=buf..newdata).Waqas Hussain2013-01-061-5/+9
|
* net.server_event: Destroy interfaces immediately, fixes reopening of servers.Kim Alvefur2012-12-281-8/+2
|
* net.server_event: Remove comments about not closing event handlers from ↵Kim Alvefur2012-12-281-4/+3
| | | | within callbacks, fixed in luaevent
* net.server_event: Replace usage of string.len() with # operatorMatthew Wild2012-07-261-2/+1
|
* net.server_event: Don't emit empty packets, check for errors first. (fixes #287)Kim Alvefur2012-07-251-4/+4
|
* net.server_event: Remove unused variables and importsMatthew Wild2012-07-221-9/+1
|
* net.server_select, net.server_event: Change semantics of conn:close() - ↵Matthew Wild2012-07-221-8/+8
| | | | always call ondisconnect (with err == nil), and never close with data in send buffer (i.e. 'now' parameter removed)
* net.server_event: Internal changes to get plain-SSL outgoing connections ↵Matthew Wild2012-05-241-3/+3
| | | | working (as for HTTPS)
* net.server_event: Assume wrapclient() is taking a new connection, and call ↵Matthew Wild2012-05-241-1/+1
| | | | onconnect when appropriate (to match server_select)
* net.server_event: Do not automatically close clients when closing a server portMatthew Wild2012-04-241-16/+3
|
* net.server_event: Fix :pause() to actually stop reading from the socket, ↵Matthew Wild2012-01-161-1/+8
| | | | rather than ignoring socket-readable events (!), and :resume() to restart the event listener
* net.server_event, net.server_select: Fixed some global pollution.Waqas Hussain2011-10-141-2/+2
|
* net.server_event: Don't call listener.onincoming with data=nil when ↵Waqas Hussain2011-09-031-1/+0
| | | | listener.onconnect is missing. onincoming's arguments shall always be non-nil.
* net.server_select, net.server_event: Silence 'error during ssl handshake' ↵Matthew Wild2011-01-111-1/+1
| | | | for wantread and wantwrite
* net.server_event: Log interface and port number when binding failsMatthew Wild2011-01-061-1/+1
|
* net.server_event: API parity with net.server_socketPaul Aurich2010-11-211-0/+4
|
* 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_event: Remove some debug messagesMatthew Wild2010-08-021-3/+0
|
* net.server_event: Fix to not call onconnect a second time after the SSL ↵Matthew Wild2010-07-221-17/+19
| | | | handshake for starttls connections (thanks Flo)
* net.server_event: Remove debug logging from dummy onstatus handlerMatthew Wild2010-07-171-1/+0
|
* net.server_event: attemp to fix more spelling fail.Waqas Hussain2010-06-111-9/+9
|
* net.server_event: Also return the socket from wrapclient, to maintain ↵Matthew Wild2010-06-021-1/+1
| | | | compatibility with server_select (thanks uhoreg)
* net.server_select, net.server_event: Add server.link() to link 2 connections ↵Matthew Wild2010-05-051-0/+21
| | | | with an intermediate buffer of the specified size
* net.server_select, net.server_event: Support for ondrain listener callback ↵Matthew Wild2010-05-051-0/+3
| | | | for when send buffer is empty
* net.server_select, net.server_event: Rename :pattern() method to :set_mode() ↵Matthew Wild2010-05-051-1/+8
| | | | 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-1/+14
| | | | connections
* net.server_event: Be sure to fire onincoming for backwards-compatibility ↵Matthew Wild2010-05-051-1/+2
| | | | with pre-onconnect listeners (thanks darkrain/mod_console)
* net.server_event: Call listener.onconnect if it exists, otherwise stick to ↵Matthew Wild2010-04-111-2/+2
| | | | listener.onincoming
* net.server_event: Fixed spelling fail.Waqas Hussain2010-03-261-4/+4
|