aboutsummaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | net.http.server: Add response method for reading response body from a file ↵Kim Alvefur2016-07-111-0/+42
| | | | | | | | handle
* | net.dns: don't use "for s,s in pairs..." (unused loop variable s) [luacheck]Anton Shestakov2016-07-091-2/+2
| |
* | net.adns: remove unused local variables t_insert and t_remove [luacheck]Anton Shestakov2016-07-091-1/+0
| |
* | net.dns: remove unused one-letter loop variables [luacheck]Anton Shestakov2016-07-091-4/+4
| |
* | net.server_select: remove unused one-letter loop variables [luacheck]Anton Shestakov2016-07-091-2/+2
| |
* | net.http: Add log messages for requests, including their id (so "calling ↵Matthew Wild2016-07-071-1/+13
| | | | | | | | callback" and tracebacks can be traced back to their initial request)
* | net.http: Add request.id to every request object (can be overridden by ↵Matthew Wild2016-07-071-0/+4
| | | | | | | | providing ex.id)
* | net.server_event: Schedule another read callback if there is still data left ↵Kim Alvefur2016-05-041-1/+5
| | | | | | | | in buffer after reading (fixes #583 for real)
* | net.server_event: Collect entire one line function on one lineKim Alvefur2016-05-041-4/+1
| |
* | Merge 0.9->0.10Kim Alvefur2016-04-191-1/+1
|\|
| * net.server_event: Check the buffer *length*, not the buffer itself (Fixes ↵Kim Alvefur2016-04-191-1/+1
| | | | | | | | 100% cpu usage introduced in 65abd9d7bf88)
* | Merge 0.9->0.10Kim Alvefur2016-04-191-4/+3
|\|
| * net.server_event: Return the correct value as timeoutKim Alvefur2016-04-191-1/+1
| |
| * net.server_event: Fix traceback if event re-added during starttlsKim Alvefur2016-04-191-4/+3
| |
* | Merge 0.9->0.10Kim Alvefur2016-04-191-0/+4
|\|
| * net.server_event: Re-add write event if writebuffer is non-empty after write ↵Kim Alvefur2016-04-191-0/+4
| | | | | | | | (eg due to writes from ondrain callback) (fixes #661)
* | server_event: addclient: wrapclient already calls startconnection for us ↵daurnimator2013-12-181-2/+1
| | | | | | | | [backported from trunk]
* | server_event: Split long list of assignments into multiple lines for readabilityKim Alvefur2016-04-051-4/+7
| |
* | server_event: Fix indentation (again)Kim Alvefur2016-04-051-526/+527
| |
* | net.server_select: Remove do-nothing os_difftime calls [backported from trunk]daurnimator2015-01-191-5/+3
| |
* | net.dns: Import unpack() in forward-compatible way (Fixes compat with Lua5.2+)Kim Alvefur2016-03-281-2/+2
| |
* | net.websocket.frames, util.datetime, util.json, util.prosodyctl, ↵Matthew Wild2016-03-101-1/+0
| | | | | | | | util.rfc6724: Remove unused variables [luacheck]