aboutsummaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* net.resolvers.basic: Support IP address literalsKim Alvefur2018-05-021-0/+11
|
* net.server_event: Don't close servers if just quitting the loop onceMatthew Wild2018-04-101-1/+3
|
* net.server_select: Allow setquitting("once") to allow resuming the loop laterMatthew Wild2018-04-101-2/+2
|
* net.connlisteners: Remove duplicated field in exports [luacheck]Kim Alvefur2018-04-061-1/+0
|
* Merge 0.10->trunkKim Alvefur2018-04-061-0/+1
|\
| * net.http: Import setmetatable into local scope (fixes #1125)Kim Alvefur2018-04-061-0/+1
| |
* | Fix spelling throughout the codebase [codespell]Kim Alvefur2018-02-043-14/+14
| |
* | net.server: Init a local logger (fixes traceback on attempt to warn about ↵Kim Alvefur2018-04-051-0/+1
| | | | | | | | missing luaevent due to later loggingmanager initialization)
* | Merge 0.10 -> trunkMatthew Wild2018-04-041-1/+1
|\|
| * net.http: Fix parameter order to http request callbacksMatthew Wild2018-04-041-1/+1
| | | | | | | | | | | | Commit e3b9dc9dd940 changed the parameter order in 2013, but did not update the names of the parameters in the callback function. Due to this inconsistency, 12df41a5a4b1 accidentally reversed the order when fixing the variable names without fixing where they are used. Additionally the documentation was incorrect (since 2013), and this has also now been fixed.
* | Backed out changeset a0f728c3aa69 in favor of 580c13ed0ca1Kim Alvefur2018-03-291-7/+3
| |
* | net.http: Allow enabling/disabling error suppression, useful for testsMatthew Wild2018-03-241-2/+7
| |
* | net.http: Fix for Lua 5.2: return error from error handler (xpcall changed)Matthew Wild2018-03-241-1/+1
| |
* | net.server: Try to require configmanager instead checking for the prosody ↵Kim Alvefur2018-03-231-3/+7
| | | | | | | | global which does not yet exist when net.server is loaded now
* | net.httpserver: Make function local, fixes loading since there is no ↵Kim Alvefur2018-03-231-1/+1
| | | | | | | | environment [luacheck]
* | vairious: Add annotation when an empty environment is set [luacheck]Kim Alvefur2018-02-286-0/+6
| |
* | server_epoll: Onconnect should happen before first attempt to write to socketKim Alvefur2018-02-261-1/+1
| |
* | net.http: Refactor to use new net.connect API, brings support for async DNSMatthew Wild2018-02-261-70/+81
| |
* | net.connect: Fix to store correct parameterMatthew Wild2018-02-261-1/+1
| |
* | net.connect: Improve error messageMatthew Wild2018-02-261-1/+1
| |
* | net.connect: Handle immediate failures of server.addclientMatthew Wild2018-02-261-1/+6
| |
* | net.connect: Handle case when resolver runs out of targetsMatthew Wild2018-02-261-0/+8
| |
* | net.connect: Track last connection errorMatthew Wild2018-02-261-1/+2
| |
* | net.server_epoll: Spelling writeable -> writableKim Alvefur2018-02-241-6/+6
| |
* | net.server_epoll: Remove special casing for having sent an empty write ↵Kim Alvefur2018-02-241-7/+5
| | | | | | | | buffer because the wantwrite flag must be unset regardless
* | net.server_epoll: Call onconnect listener on first successful read or writeKim Alvefur2018-02-241-29/+14
| |
* | net.connect: Default to *a pattern if none providedMatthew Wild2018-02-231-1/+1
| |
* | net.http: Rename handler to conn, for consistency with all our other codeMatthew Wild2018-02-231-3/+3
| |
* | net.http: Remove use of 'conn' (raw socket object returned by addclient)Matthew Wild2018-02-231-9/+10
| |
* | net.connect: New API for outgoing connections, based on 'service resolvers'Matthew Wild2018-02-233-0/+163
| |
* | net.server_event: Not every instantly-readable connection is an error, ↵Matthew Wild2018-02-231-2/+6
| | | | | | | | continue if possible
* | net.server_event: Better outgoing connection error handlingMatthew Wild2018-02-231-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 connectionsMatthew Wild2018-02-231-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 Alvefur2018-02-031-1/+4
| | | | | | | | called so it is only done once
* | server_epoll: Rework how socket readyness is detectedKim Alvefur2018-02-021-7/+17
| |
* | net.websocket.frames: Ignore Lua 5.3-only fields [luacheck]Kim Alvefur2017-12-021-2/+2
| |
* | Merge 0.10->trunkKim Alvefur2017-12-011-1/+1
|\|
| * net.dns: Don't compress a single zero group in IPv6 addresses to match ↵Kim Alvefur2017-12-011-1/+1
| | | | | | | | behaviour of inet_ntop
* | net.dns: Use inet_ntop from util.net if availableKim Alvefur2017-11-291-0/+13
| |
* | net.server_event: Split long line [luacheck]Kim Alvefur2017-11-101-1/+2
| |
* | Merge 0.10->trunkKim Alvefur2017-10-291-3/+5
|\|
| * net.http.server: Include response object in most http-error eventsKim Alvefur2017-10-271-3/+5
| |
* | net.server_event: Add "libevent" to backend descriptionKim Alvefur2017-10-091-1/+1
| |
* | Merge 0.10->trunkKim Alvefur2017-09-291-0/+1
|\|
| * net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)Kim Alvefur2017-09-271-0/+1
| |
* | net.server_epoll: Add interface:server() method to match server_event (fixes ↵Kim Alvefur2017-09-291-3/+7
| | | | | | | | c2s:show traceback in telnet console)
* | Merge 0.10->trunkMatthew Wild2017-09-262-34/+47
|\|
| * net.adns: Restructure to allow creating separate resolver objects, like net.dnsMatthew Wild2017-09-251-33/+46
| |
| * net.dns: Correctly apply lower bound of RTT (thanks Ge0rG)Kim Alvefur2017-09-241-1/+1
| |
* | Merge 0.10->trunkKim Alvefur2017-08-282-4/+28
|\|