Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | server_select: Fix :lock method | Kim Alvefur | 2018-10-28 | 1 | -1/+1 |
| | | | | | | This always unlocks reading. I don't believe this is used anywhere. server_event does not implement this. | ||||
* | net.server_select: Move code from :lock_read into :pause and :resume | Kim Alvefur | 2018-10-28 | 1 | -13/+15 |
| | |||||
* | net.server_select: Deprecate connection:lock_read() method | Kim Alvefur | 2018-10-28 | 1 | -1/+1 |
| | |||||
* | net.server: Swich method for connecting sockets with remotes | Kim Alvefur | 2018-10-12 | 1 | -1/+1 |
| | | | | | | | LuaSocket TCP sockets have have both :connect and :setpeername, which are the exact same function, however UDP sockets only have :setpeername. Switching to :setpeername allows most of this code to be generic wrt TCP/UDP. | ||||
* | net.server: Remove socket constructor fallback | Kim Alvefur | 2018-10-12 | 1 | -1/+1 |
| | | | | Should no longer be needed | ||||
* | net.server: Require IP address as argument to addclient (no DNS names) | Kim Alvefur | 2018-10-11 | 1 | -7/+10 |
| | | | | The net.connect API should be used to resolve DNS names first | ||||
* | net.connect: Fix passing request table to new listener | Kim Alvefur | 2018-09-26 | 1 | -2/+2 |
| | | | | This could be a return value from ondetach | ||||
* | net.server: Call a 'onattach' callback when replacing listeners | Kim Alvefur | 2018-09-26 | 1 | -0/+3 |
| | |||||
* | net.server: Set default read timeout to 14 minutes (fixes #971) | Kim Alvefur | 2018-07-06 | 1 | -1/+1 |
| | |||||
* | net.server: Add watchfd, a simple API for watching file descriptors | Kim Alvefur | 2018-05-09 | 1 | -0/+43 |
| | |||||
* | net.server_select: Allow setquitting("once") to allow resuming the loop later | Matthew Wild | 2018-04-10 | 1 | -2/+2 |
| | |||||
* | Fix spelling throughout the codebase [codespell] | Kim Alvefur | 2018-02-04 | 1 | -3/+3 |
| | |||||
* | net.server_select: Better detection of errors for outgoing connections | Matthew Wild | 2018-02-23 | 1 | -6/+7 |
| | | | | | | | | | | | On connection failure, a socket is marked readable and writable. So to detect initial connection failures (connection refused, etc.) we now watch for sockets becoming readable during initial connection, and also read from readable sockets before writing to writable sockets. This should fix 'onconnect' being called for outgoing connections that actually failed. | ||||
* | Merge 0.10->trunk | Kim Alvefur | 2016-11-26 | 1 | -0/+1 |
|\ | |||||
| * | Merge 0.9->0.10 | Kim Alvefur | 2016-11-24 | 1 | -0/+1 |
| |\ | |||||
| | * | net.server_select: Prevent writes after a handler is closed (fixes #783 I hope) | Kim Alvefur | 2016-11-22 | 1 | -0/+1 |
| | | | |||||
| * | | net.server_select: remove unused import [luacheck] | Anton Shestakov | 2016-07-28 | 1 | -1/+0 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-07-14 | 1 | -1/+1 |
|\| | | |||||
| * | | net.server_select: remove unused one-letter loop variable [luacheck] | Anton Shestakov | 2016-07-14 | 1 | -1/+1 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-07-08 | 1 | -2/+2 |
|\| | | |||||
| * | | net.server_select: remove unused one-letter loop variables [luacheck] | Anton Shestakov | 2016-07-09 | 1 | -2/+2 |
| | | | |||||
| * | | net.server_select: Remove do-nothing os_difftime calls [backported from trunk] | daurnimator | 2015-01-19 | 1 | -5/+3 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-01-22 | 1 | -1/+21 |
|\| | | |||||
| * | | Merge 0.9->0.10 | Kim Alvefur | 2016-01-22 | 1 | -0/+20 |
| |\| | |||||
| | * | server_select: Add logging of when servers are paused and resumed | Kim Alvefur | 2016-01-22 | 1 | -0/+2 |
| | | | |||||
| | * | server_select: Pause and mark server as full if accepting a client fails ↵ | Kim Alvefur | 2016-01-22 | 1 | -0/+2 |
| | | | | | | | | | | | | (fixes #597) | ||||
| | * | server_select: Retry accepting clients from full servers after 10s (matches ↵ | Kim Alvefur | 2016-01-22 | 1 | -0/+11 |
| | | | | | | | | | | | | libevent behaviour) | ||||
| | * | server_select: Keep track of which server listeners are full | Kim Alvefur | 2016-01-22 | 1 | -0/+5 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2016-01-10 | 1 | -0/+3 |
|\| | | |||||
| * | | net.server_select: Add 'server' method to client connections (present in ↵ | Kim Alvefur | 2016-01-09 | 1 | -0/+3 |
| | | | | | | | | | | | | server_event) | ||||
* | | | Merge 0.10->trunk | Matthew Wild | 2016-01-04 | 1 | -2/+3 |
|\| | | |||||
| * | | server_select: Forward the actual TLS handshake error message | Kim Alvefur | 2016-01-03 | 1 | -2/+3 |
| | | | |||||
* | | | Merge 0.10->trunk | Matthew Wild | 2016-01-02 | 1 | -0/+1 |
|\| | | |||||
| * | | net.server_select: Close all connections when quitting (and not just ↵ | Matthew Wild | 2016-01-02 | 1 | -0/+1 |
| | | | | | | | | | | | | stepping), matches server_event | ||||
| * | | net.server_{select,event}: addclient: Use getaddrinfo to detect IP address ↵ | Kim Alvefur | 2013-12-23 | 1 | -1/+9 |
| | | | | | | | | | | | | 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_select: Fix typo | daurnimator | 2013-12-18 | 1 | -1/+1 |
| | | | |||||
| * | | net/server_select: addclient: Check arguments | daurnimator | 2013-12-18 | 1 | -0/+15 |
| | | | |||||
| * | | net/server_select: addclient: Check for failure correctly; remove ↵ | daurnimator | 2013-12-18 | 1 | -3/+3 |
| | | | | | | | | | | | | wrapconnection call on failure | ||||
| * | | net/server_select: Check arguments to add_server correctly | daurnimator | 2013-12-18 | 1 | -3/+4 |
| | | | |||||
| * | | net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present ↵ | Kim Alvefur | 2015-02-23 | 1 | -5/+5 |
| | | | | | | | | | | | | in the globals table | ||||
* | | | net.server_select: Remove unused code | daurnimator | 2015-01-19 | 1 | -6/+0 |
| | | | |||||
* | | | net.server_select: Remove socket.sleep call from main loop | daurnimator | 2015-01-19 | 1 | -8/+0 |
| | | | | | | | | | | | | | | | | | | It's been there since the start; but should really not be required. People can remember an issue with FreeBSD that this solved, but this was a hack solution anyway. If that issue rears it's head again, we will solve it properly. | ||||
* | | | net.server_select: Remove do-nothing os_difftime calls | daurnimator | 2015-01-19 | 1 | -5/+3 |
| | | | |||||
* | | | net.server_select: In add_task timer callback, use passed in time rather ↵ | daurnimator | 2015-01-15 | 1 | -2/+1 |
| | | | | | | | | | | | | than re-fetching | ||||
* | | | net.server_select: Fix timers not being fired until another timer fixes (or ↵ | daurnimator | 2015-01-15 | 1 | -16/+8 |
| | | | | | | | | | | | | 1 second passes) | ||||
* | | | Move timer code out of util.timer and into relevant net.server backends | daurnimator | 2014-10-20 | 1 | -0/+46 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2014-10-05 | 1 | -0/+2 |
|\| | | |||||
| * | | net.server_select: Reset read timeout timer if the event is handled | Kim Alvefur | 2014-10-03 | 1 | -0/+2 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2014-09-28 | 1 | -0/+3 |
|\| | |