aboutsummaryrefslogtreecommitdiffstats
path: root/net
Commit message (Collapse)AuthorAgeFilesLines
* 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]
* | Merge 0.9->0.10Kim Alvefur2016-03-021-525/+526
|\|
| * net.server_event: Return true from conn:resume() to indicate successKim Alvefur2016-03-021-0/+1
| |
| * net.server_event: Prevent resuming connections without readcallback, eg ↵Kim Alvefur2016-03-021-1/+1
| | | | | | | | closed connections (fixes #590)
* | Merge 0.9->0.10Kim Alvefur2016-01-223-8/+28
|\|
| * server_select: Add logging of when servers are paused and resumedKim Alvefur2016-01-221-0/+2
| |
| * server_select: Pause and mark server as full if accepting a client fails ↵Kim Alvefur2016-01-221-0/+2
| | | | | | | | (fixes #597)
| * server_select: Retry accepting clients from full servers after 10s (matches ↵Kim Alvefur2016-01-222-1/+12
| | | | | | | | libevent behaviour)
| * server_select: Keep track of which server listeners are fullKim Alvefur2016-01-221-0/+5
| |
| * net.dns: Remember query only after it was sent, in case it was not (fixes #598)Kim Alvefur2016-01-211-5/+5
| |
* | net.http.server: Return from listen_on() whatever net.server.addserver() returnsKim Alvefur2016-01-161-1/+1
| |
* | net.server_select: Add 'server' method to client connections (present in ↵Kim Alvefur2016-01-091-0/+3
| | | | | | | | server_event)