Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net.connect: Handle case when resolver runs out of targets | Matthew Wild | 2018-02-26 | 1 | -0/+8 |
| | |||||
* | net.connect: Track last connection error | Matthew Wild | 2018-02-26 | 1 | -1/+2 |
| | |||||
* | net.server_epoll: Spelling writeable -> writable | Kim Alvefur | 2018-02-24 | 1 | -6/+6 |
| | |||||
* | net.server_epoll: Remove special casing for having sent an empty write ↵ | Kim Alvefur | 2018-02-24 | 1 | -7/+5 |
| | | | | buffer because the wantwrite flag must be unset regardless | ||||
* | net.server_epoll: Call onconnect listener on first successful read or write | Kim Alvefur | 2018-02-24 | 1 | -29/+14 |
| | |||||
* | net.connect: Default to *a pattern if none provided | Matthew Wild | 2018-02-23 | 1 | -1/+1 |
| | |||||
* | net.http: Rename handler to conn, for consistency with all our other code | Matthew Wild | 2018-02-23 | 1 | -3/+3 |
| | |||||
* | net.http: Remove use of 'conn' (raw socket object returned by addclient) | Matthew Wild | 2018-02-23 | 1 | -9/+10 |
| | |||||
* | net.connect: New API for outgoing connections, based on 'service resolvers' | Matthew Wild | 2018-02-23 | 3 | -0/+163 |
| | |||||
* | 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_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. | ||||
* | server_epoll: Restore mark on connections which had the onconnect handler ↵ | Kim Alvefur | 2018-02-03 | 1 | -1/+4 |
| | | | | called so it is only done once | ||||
* | server_epoll: Rework how socket readyness is detected | Kim Alvefur | 2018-02-02 | 1 | -7/+17 |
| | |||||
* | net.websocket.frames: Ignore Lua 5.3-only fields [luacheck] | Kim Alvefur | 2017-12-02 | 1 | -2/+2 |
| | |||||
* | Merge 0.10->trunk | Kim Alvefur | 2017-12-01 | 1 | -1/+1 |
|\ | |||||
| * | net.dns: Don't compress a single zero group in IPv6 addresses to match ↵ | Kim Alvefur | 2017-12-01 | 1 | -1/+1 |
| | | | | | | | | behaviour of inet_ntop | ||||
* | | net.dns: Use inet_ntop from util.net if available | Kim Alvefur | 2017-11-29 | 1 | -0/+13 |
| | | |||||
* | | net.server_event: Split long line [luacheck] | Kim Alvefur | 2017-11-10 | 1 | -1/+2 |
| | | |||||
* | | Merge 0.10->trunk | Kim Alvefur | 2017-10-29 | 1 | -3/+5 |
|\| | |||||
| * | net.http.server: Include response object in most http-error events | Kim Alvefur | 2017-10-27 | 1 | -3/+5 |
| | | |||||
* | | net.server_event: Add "libevent" to backend description | Kim Alvefur | 2017-10-09 | 1 | -1/+1 |
| | | |||||
* | | Merge 0.10->trunk | Kim Alvefur | 2017-09-29 | 1 | -0/+1 |
|\| | |||||
| * | net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2) | Kim Alvefur | 2017-09-27 | 1 | -0/+1 |
| | | |||||
* | | net.server_epoll: Add interface:server() method to match server_event (fixes ↵ | Kim Alvefur | 2017-09-29 | 1 | -3/+7 |
| | | | | | | | | c2s:show traceback in telnet console) | ||||
* | | Merge 0.10->trunk | Matthew Wild | 2017-09-26 | 2 | -34/+47 |
|\| | |||||
| * | net.adns: Restructure to allow creating separate resolver objects, like net.dns | Matthew Wild | 2017-09-25 | 1 | -33/+46 |
| | | |||||
| * | net.dns: Correctly apply lower bound of RTT (thanks Ge0rG) | Kim Alvefur | 2017-09-24 | 1 | -1/+1 |
| | | |||||
* | | Merge 0.10->trunk | Kim Alvefur | 2017-08-28 | 2 | -4/+28 |
|\| | |||||
| * | net.http: Add option for disabling TLS certifictate validation | Kim Alvefur | 2017-07-07 | 1 | -1/+2 |
| | | |||||
| * | net.http: Validate HTTPS certificates (fixes #659) | Kim Alvefur | 2017-07-07 | 1 | -0/+21 |
| | | |||||
| * | net.http: Move default SSL/TLS settings into options, allowing them to be ↵ | Kim Alvefur | 2017-07-07 | 1 | -2/+4 |
| | | | | | | | | overriden in new() | ||||
| * | net.http: Expose defaults | Kim Alvefur | 2017-07-07 | 1 | -0/+1 |
| | | |||||
| * | net.http: Remove duplicate 'request' entry | Kim Alvefur | 2017-07-07 | 1 | -1/+0 |
| | | |||||
| * | net.websocket: Remove stray module api reference, shouldn't be used in here | Kim Alvefur | 2017-07-30 | 1 | -1/+1 |
| | | |||||
* | | Merge 0.10->trunk | Kim Alvefur | 2017-06-13 | 1 | -1/+1 |
|\| | |||||
| * | Merge 0.9->0.10 | Kim Alvefur | 2017-06-13 | 1 | -1/+1 |
| |\ | |||||
| | * | net.dns: Prevent answers from immediately expiring even if TTL=0 (see #919) | Kim Alvefur | 2017-06-13 | 1 | -1/+1 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2017-05-27 | 1 | -8/+2 |
|\| | | |||||
| * | | Merge 0.9->0.10 | Kim Alvefur | 2017-05-27 | 1 | -8/+2 |
| |\| | |||||
| | * | net.dns: Simplify expiry calculation (fixes #919) | Kim Alvefur | 2017-05-22 | 1 | -8/+2 |
| | | | |||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2017-04-24 | 1 | -4/+42 |
|\| | | |||||
| * | | net.http: Add request.url, which is the original full URL as a string | Matthew Wild | 2017-04-21 | 1 | -0/+1 |
| | | | |||||
| * | | net.http: Fire new events: pre-request, request-connection-error, request, ↵ | Matthew Wild | 2017-04-21 | 1 | -1/+19 |
| | | | | | | | | | | | | response | ||||
| * | | net.http: Allow creation of http client objects, with custom options | Matthew Wild | 2017-04-21 | 1 | -3/+22 |
| | | | |||||
* | | | net.server_epoll: Reset onwritable before calling onconnect (fixes traceback ↵ | Kim Alvefur | 2017-04-16 | 1 | -2/+2 |
| | | | | | | | | | | | | if connection closed in onconnect) | ||||
* | | | Merge 0.10->trunk | Kim Alvefur | 2017-04-02 | 2 | -4/+4 |
|\| | | |||||
| * | | net.http: Pass error all the way to callback | Kim Alvefur | 2017-04-02 | 2 | -4/+4 |
| | | | |||||
* | | | net.server_epoll: Attempt to simplify state control | Kim Alvefur | 2017-03-27 | 1 | -22/+12 |
| | | | |||||
* | | | net.server_epoll: Check write buffer for remaining data to write when closing | Kim Alvefur | 2017-03-27 | 1 | -1/+1 |
| | | |