aboutsummaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* net.dns: Syntesize type names for the full rangeKim Alvefur2018-06-091-4/+5
| | | | | | | | Otherwise unknown records are identified as A records. This also fixes various tracebacks unearthed by previous commits and mis-identified records. Related to #1056 #976 #819
* net.dns: Don't attempt to cache unparsed data (fixes #1056)Kim Alvefur2018-06-091-1/+1
| | | | | | | rr[qtype:lower()] can be nil. I think this happens if the type does not have a parser. Also see #819 #976
* net.dns: Also cache records from the 'additional' sectionKim Alvefur2018-06-031-0/+4
| | | | Could be getting A/AAAA records here when asking for SRV
* net.dns: Cache all records from the 'answer' section (fixes #487)Kim Alvefur2018-06-091-1/+1
| | | | This should preserve CNAME records included here
* net.http: Import setmetatable into local scope (fixes #1125)Kim Alvefur2018-04-061-0/+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.
* 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.http.server: Include response object in most http-error eventsKim Alvefur2017-10-271-3/+5
|
* net.adns: Import setmetatable into a local (fixes traceback on Lua 5.2)Kim Alvefur2017-09-271-0/+1
|
* 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
|
* net.http: Add option for disabling TLS certifictate validationKim Alvefur2017-07-071-1/+2
|
* net.http: Validate HTTPS certificates (fixes #659)Kim Alvefur2017-07-071-0/+21
|
* net.http: Move default SSL/TLS settings into options, allowing them to be ↵Kim Alvefur2017-07-071-2/+4
| | | | overriden in new()
* net.http: Expose defaultsKim Alvefur2017-07-071-0/+1
|
* net.http: Remove duplicate 'request' entryKim Alvefur2017-07-071-1/+0
|
* net.websocket: Remove stray module api reference, shouldn't be used in hereKim Alvefur2017-07-301-1/+1
|
* Merge 0.9->0.10Kim Alvefur2017-06-131-1/+1
|\
| * net.dns: Prevent answers from immediately expiring even if TTL=0 (see #919)Kim Alvefur2017-06-131-1/+1
| |
* | Merge 0.9->0.10Kim Alvefur2017-05-271-8/+2
|\|
| * net.dns: Simplify expiry calculation (fixes #919)Kim Alvefur2017-05-221-8/+2
| |
* | net.http: Add request.url, which is the original full URL as a stringMatthew Wild2017-04-211-0/+1
| |
* | net.http: Fire new events: pre-request, request-connection-error, request, ↵Matthew Wild2017-04-211-1/+19
| | | | | | | | response
* | net.http: Allow creation of http client objects, with custom optionsMatthew Wild2017-04-211-3/+22
| |
* | net.http: Pass error all the way to callbackKim Alvefur2017-04-022-4/+4
| |
* | net.server_event: Also replace 'ondrain' when setting new listeners (thanks ↵Kim Alvefur2017-01-041-0/+1
| | | | | | | | Ge0rG)
* | net.http: Strip trailing whitespaceKim Alvefur2016-12-301-1/+1
| |
* | net.http: Remove unused imports [luacheck]Kim Alvefur2016-12-301-3/+3
| |
* | net.websocket: Ignore unused argument warnings [luacheck]Kim Alvefur2016-12-041-3/+3
| |
* | Merge 0.9->0.10Kim Alvefur2016-11-241-0/+1
|\|
| * net.server_select: Prevent writes after a handler is closed (fixes #783 I hope)Kim Alvefur2016-11-221-0/+1
| |
* | net.server_event: Restore destruction of socket on read timeout (lost since ↵Kim Alvefur2016-10-081-0/+4
| | | | | | | | e67891ad18d6) (thanks Ge0rG)
* | net.http.parser: Don't collapse buffer when expecting a chunk and not enough ↵Kim Alvefur2016-08-261-0/+3
| | | | | | | | data has been received
* | net.http.parser: Fix missing buffer length adjustment when parsing chunked ↵Kim Alvefur2016-08-261-0/+1
| | | | | | | | streams
* | net.http.server: Add luacheck annotationsKim Alvefur2016-08-181-2/+2
| |
* | Merge 0.9->0.10Kim Alvefur2016-08-182-8/+34
|\|
| * net.http.server: Expose way to set http server optionsKim Alvefur2016-08-181-1/+8
| |
| * net.http.parser: Allow limits to be configurable via options callbackKim Alvefur2016-08-181-2/+2
| |
| * net.http.parser: Add a limit on maximum buffer size, default to 20MKim Alvefur2016-08-181-0/+2
| |
| * net.http.parser: Add a limit on content length, default to 10MKim Alvefur2016-08-181-0/+2
| |
| * net.http.parser: Buffer into a table to reduce GC pressure, collapse to ↵Kim Alvefur2016-08-131-7/+22
| | | | | | | | string when needed (fixes #603)
* | net.http.codes: Add HTTP status code 451 Unavailable For Legal Reasons from ↵Kim Alvefur2016-08-131-0/+1
| | | | | | | | RFC 7725
* | net.http.codes: Remove used argumentKim Alvefur2016-08-131-1/+1
| |
* | net.http.parser: Remove unused argument [luacheck]Kim Alvefur2016-08-131-1/+1
| |
* | net.http.server: Set blocksize for serving data from FDs to 64k (sweet spot ↵Kim Alvefur2016-08-081-1/+1
| | | | | | | | of efficiency according to a recent study)
* | net.dns: remove unused variable unpack [luacheck]Anton Shestakov2016-07-281-2/+2
| |
* | net.server_select: remove unused import [luacheck]Anton Shestakov2016-07-281-1/+0
| |
* | net.http: Add quotes around ids in log messagesMatthew Wild2016-07-271-3/+3
| |
* | net.server_select: remove unused one-letter loop variable [luacheck]Anton Shestakov2016-07-141-1/+1
| |
* | net.dns: remove unused one-letter loop variables [luacheck]Anton Shestakov2016-07-141-4/+4
| |