aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.10->trunkKim Alvefur2016-04-191-1/+1
|\
| * Merge 0.9->0.10Kim Alvefur2016-04-191-1/+1
| |\
| | * net.server_event: Check the buffer *length*, not the buffer itself (Fixes ↵Kim Alvefur2016-04-191-1/+1
| | | | | | | | | | | | 100% cpu usage introduced in 65abd9d7bf88)
* | | Merge 0.10->trunkKim Alvefur2016-04-191-4/+3
|\| |
| * | Merge 0.9->0.10Kim Alvefur2016-04-191-4/+3
| |\|
| | * net.server_event: Return the correct value as timeoutKim Alvefur2016-04-191-1/+1
| | |
| | * net.server_event: Fix traceback if event re-added during starttlsKim Alvefur2016-04-191-4/+3
| | |
* | | Merge 0.10->trunkKim Alvefur2016-04-191-0/+4
|\| |
| * | Merge 0.9->0.10Kim Alvefur2016-04-191-0/+4
| |\|
| | * net.server_event: Re-add write event if writebuffer is non-empty after write ↵Kim Alvefur2016-04-191-0/+4
| | | | | | | | | | | | (eg due to writes from ondrain callback) (fixes #661)
* | | Merge 0.10->trunkKim Alvefur2016-04-061-1/+0
|\| |
| * | server_event: addclient: wrapclient already calls startconnection for us ↵daurnimator2013-12-181-2/+1
| | | | | | | | | | | | [backported from trunk]
* | | Merge 0.10->trunkKim Alvefur2016-04-051-17/+22
|\| |
| * | server_event: Split long list of assignments into multiple lines for readabilityKim Alvefur2016-04-051-4/+7
| | |
| * | server_event: Fix indentation (again)Kim Alvefur2016-04-051-526/+527
| | |
* | | Merge 0.10->trunkKim Alvefur2016-03-021-7/+8
|\| |
| * | Merge 0.9->0.10Kim Alvefur2016-03-021-525/+526
| |\|
| | * net.server_event: Return true from conn:resume() to indicate successKim Alvefur2016-03-021-0/+1
| | |
| | * net.server_event: Prevent resuming connections without readcallback, eg ↵Kim Alvefur2016-03-021-1/+1
| | | | | | | | | | | | closed connections (fixes #590)
* | | Merge 0.10->trunkMatthew Wild2016-01-021-0/+1
|\| |
| * | net.server_event: Add conn.type == 'server' for server sockets (fixes ↵Matthew Wild2016-01-021-0/+1
| | | | | | | | | | | | closeallservers() )
* | | net.server_event: Return event handle from add_task so it can be closed by ↵Kim Alvefur2015-11-221-0/+1
| | | | | | | | | | | | eg util.timer
* | | server_event: Remove needless scoping around add_taskKim Alvefur2015-09-251-13/+9
| | |
* | | Merge 0.10->trunkKim Alvefur2015-09-251-643/+590
|\| |
| * | server_event: Fix indentationKim Alvefur2015-09-251-5/+5
| | |
| * | server_event: Put function keyword on same line as the coroutine.wrap it's ↵Kim Alvefur2015-09-251-2/+1
| | | | | | | | | | | | being passed to
| * | server_event: Normalize indentationKim Alvefur2015-09-251-118/+118
| | |
| * | server_event: Remove unused argument [luacheck]Kim Alvefur2015-09-251-1/+1
| | |
| * | server_event: Comment out the unused vdebug function [luacheck]Kim Alvefur2015-09-251-1/+1
| | |
| * | server_event: Remove unused former argument (fixes global access) [luacheck]Kim Alvefur2015-09-251-1/+1
| | |
| * | server_event: Rename luaevent module variable to avoid name clash [luacheck]Kim Alvefur2015-09-251-7/+7
| | |
| * | server_event: Add luacheck annotationsKim Alvefur2015-09-251-1/+2
| | |
| * | server_event: Remove needless scoping and indentationKim Alvefur2015-09-251-579/+562
| | |
| * | server_event: Move local references to various functions to top of fileKim Alvefur2015-09-251-22/+18
| | |
| * | server_event: Replace implementation of ordered set with a simple table setKim Alvefur2015-09-251-38/+6
| | |
| * | 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-2/+9
| | |
| * | net/server_event: pcall require ssl rather than relying on globalsdaurnimator2013-12-181-15/+7
| | |
| * | net/server_event: add_client should have same arguments no-matter the server ↵daurnimator2013-12-181-21/+6
| | | | | | | | | | | | backend
* | | Merge 0.10->trunkKim Alvefur2015-08-201-4/+4
|\| |
| * | net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present ↵Kim Alvefur2015-02-231-6/+6
| | | | | | | | | | | | in the globals table
* | | Move timer code out of util.timer and into relevant net.server backendsdaurnimator2014-10-201-0/+18
| | |
* | | Merge 0.10->trunkKim Alvefur2014-09-021-3/+8
|\| |
| * | Merge 0.9->0.10Kim Alvefur2014-09-021-3/+8
| |\|
| | * net.server_{select,event}: Add 'ondetach' callback for listener objects, to ↵Matthew Wild2014-08-291-2/+8
| | | | | | | | | | | | notify them when another listener is being assigned to a connection
* | | 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
|\| |