Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net.server_event: Not every instantly-readable connection is an error, ↵ | Matthew Wild | 2018-02-23 | 1 | -2/+6 |
| | | | | continue if possible | ||||
* | net.server_event: Better outgoing connection error handling | Matthew Wild | 2018-02-23 | 1 | -1/+3 |
| | | | | | | Same as 67311cda0625. Check for readability. If a socket is readable after initial connection, it likely means an error, so we call the readcallback for that connection to handle it (and ultimately close). | ||||
* | net.server_event: Split long line [luacheck] | Kim Alvefur | 2017-11-10 | 1 | -1/+2 |
| | |||||
* | net.server_event: Add "libevent" to backend description | Kim Alvefur | 2017-10-09 | 1 | -1/+1 |
| | |||||
* | Merge 0.10->trunk | Kim Alvefur | 2017-01-04 | 1 | -0/+1 |
|\ | |||||
| * | net.server_event: Also replace 'ondrain' when setting new listeners (thanks ↵ | Kim Alvefur | 2017-01-04 | 1 | -0/+1 |
| | | | | | | | | Ge0rG) | ||||
* | | Merge 0.10->trunk | Kim Alvefur | 2016-10-08 | 1 | -0/+4 |
|\| | |||||
| * | net.server_event: Restore destruction of socket on read timeout (lost since ↵ | Kim Alvefur | 2016-10-08 | 1 | -0/+4 |
| | | | | | | | | e67891ad18d6) (thanks Ge0rG) | ||||
* | | Merge 0.10->trunk | Kim Alvefur | 2016-05-04 | 1 | -5/+6 |
|\| | |||||
| * | net.server_event: Schedule another read callback if there is still data left ↵ | Kim Alvefur | 2016-05-04 | 1 | -1/+5 |
| | | | | | | | | in buffer after reading (fixes #583 for real) | ||||
| * | net.server_event: Collect entire one line function on one line | Kim Alvefur | 2016-05-04 | 1 | -4/+1 |
| | | |||||
* | | Merge 0.10->trunk | Kim Alvefur | 2016-04-19 | 1 | -1/+1 |
|\| | |||||
| * | Merge 0.9->0.10 | Kim Alvefur | 2016-04-19 | 1 | -1/+1 |
| |\ | |||||
| | * | net.server_event: Check the buffer *length*, not the buffer itself (Fixes ↵ | Kim Alvefur | 2016-04-19 | 1 | -1/+1 |
| | | | | | | | | | | | | 100% cpu usage introduced in 65abd9d7bf88) | ||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-04-19 | 1 | -4/+3 |
|\| | | |||||
| * | | Merge 0.9->0.10 | Kim Alvefur | 2016-04-19 | 1 | -4/+3 |
| |\| | |||||
| | * | net.server_event: Return the correct value as timeout | Kim Alvefur | 2016-04-19 | 1 | -1/+1 |
| | | | |||||
| | * | net.server_event: Fix traceback if event re-added during starttls | Kim Alvefur | 2016-04-19 | 1 | -4/+3 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-04-19 | 1 | -0/+4 |
|\| | | |||||
| * | | Merge 0.9->0.10 | Kim Alvefur | 2016-04-19 | 1 | -0/+4 |
| |\| | |||||
| | * | net.server_event: Re-add write event if writebuffer is non-empty after write ↵ | Kim Alvefur | 2016-04-19 | 1 | -0/+4 |
| | | | | | | | | | | | | (eg due to writes from ondrain callback) (fixes #661) | ||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-04-06 | 1 | -1/+0 |
|\| | | |||||
| * | | server_event: addclient: wrapclient already calls startconnection for us ↵ | daurnimator | 2013-12-18 | 1 | -2/+1 |
| | | | | | | | | | | | | [backported from trunk] | ||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-04-05 | 1 | -17/+22 |
|\| | | |||||
| * | | server_event: Split long list of assignments into multiple lines for readability | Kim Alvefur | 2016-04-05 | 1 | -4/+7 |
| | | | |||||
| * | | server_event: Fix indentation (again) | Kim Alvefur | 2016-04-05 | 1 | -526/+527 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-03-02 | 1 | -7/+8 |
|\| | | |||||
| * | | Merge 0.9->0.10 | Kim Alvefur | 2016-03-02 | 1 | -525/+526 |
| |\| | |||||
| | * | net.server_event: Return true from conn:resume() to indicate success | Kim Alvefur | 2016-03-02 | 1 | -0/+1 |
| | | | |||||
| | * | net.server_event: Prevent resuming connections without readcallback, eg ↵ | Kim Alvefur | 2016-03-02 | 1 | -1/+1 |
| | | | | | | | | | | | | closed connections (fixes #590) | ||||
* | | | Merge 0.10->trunk | Matthew Wild | 2016-01-02 | 1 | -0/+1 |
|\| | | |||||
| * | | net.server_event: Add conn.type == 'server' for server sockets (fixes ↵ | Matthew Wild | 2016-01-02 | 1 | -0/+1 |
| | | | | | | | | | | | | closeallservers() ) | ||||
* | | | net.server_event: Return event handle from add_task so it can be closed by ↵ | Kim Alvefur | 2015-11-22 | 1 | -0/+1 |
| | | | | | | | | | | | | eg util.timer | ||||
* | | | server_event: Remove needless scoping around add_task | Kim Alvefur | 2015-09-25 | 1 | -13/+9 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2015-09-25 | 1 | -643/+590 |
|\| | | |||||
| * | | server_event: Fix indentation | Kim Alvefur | 2015-09-25 | 1 | -5/+5 |
| | | | |||||
| * | | server_event: Put function keyword on same line as the coroutine.wrap it's ↵ | Kim Alvefur | 2015-09-25 | 1 | -2/+1 |
| | | | | | | | | | | | | being passed to | ||||
| * | | server_event: Normalize indentation | Kim Alvefur | 2015-09-25 | 1 | -118/+118 |
| | | | |||||
| * | | server_event: Remove unused argument [luacheck] | Kim Alvefur | 2015-09-25 | 1 | -1/+1 |
| | | | |||||
| * | | server_event: Comment out the unused vdebug function [luacheck] | Kim Alvefur | 2015-09-25 | 1 | -1/+1 |
| | | | |||||
| * | | server_event: Remove unused former argument (fixes global access) [luacheck] | Kim Alvefur | 2015-09-25 | 1 | -1/+1 |
| | | | |||||
| * | | server_event: Rename luaevent module variable to avoid name clash [luacheck] | Kim Alvefur | 2015-09-25 | 1 | -7/+7 |
| | | | |||||
| * | | server_event: Add luacheck annotations | Kim Alvefur | 2015-09-25 | 1 | -1/+2 |
| | | | |||||
| * | | server_event: Remove needless scoping and indentation | Kim Alvefur | 2015-09-25 | 1 | -579/+562 |
| | | | |||||
| * | | server_event: Move local references to various functions to top of file | Kim Alvefur | 2015-09-25 | 1 | -22/+18 |
| | | | |||||
| * | | server_event: Replace implementation of ordered set with a simple table set | Kim Alvefur | 2015-09-25 | 1 | -38/+6 |
| | | | |||||
| * | | net.server_{select,event}: addclient: Use getaddrinfo to detect IP address ↵ | Kim Alvefur | 2013-12-23 | 1 | -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 type | Kim Alvefur | 2013-12-23 | 1 | -2/+9 |
| | | | |||||
| * | | net/server_event: pcall require ssl rather than relying on globals | daurnimator | 2013-12-18 | 1 | -15/+7 |
| | | | |||||
| * | | net/server_event: add_client should have same arguments no-matter the server ↵ | daurnimator | 2013-12-18 | 1 | -21/+6 |
| | | | | | | | | | | | | backend |