Commit graph

857 commits

Author SHA1 Message Date
Kim Alvefur
99ba4462fc net.http.server: Add response method for reading response body from a file handle 2016-07-11 11:52:43 +02:00
Anton Shestakov
8320418d38 net.dns: don't use "for s,s in pairs..." (unused loop variable s) [luacheck] 2016-07-09 10:26:18 +08:00
Anton Shestakov
45af943ce3 net.adns: remove unused local variables t_insert and t_remove [luacheck] 2016-07-09 00:58:16 +08:00
Anton Shestakov
4da595c2cf net.dns: remove unused one-letter loop variables [luacheck] 2016-07-09 00:45:59 +08:00
Anton Shestakov
7a87176df8 net.server_select: remove unused one-letter loop variables [luacheck] 2016-07-09 00:37:34 +08:00
Matthew Wild
22ce4d1825 net.http: Add log messages for requests, including their id (so "calling callback" and tracebacks can be traced back to their initial request) 2016-07-07 23:08:47 +01:00
Matthew Wild
fc9bcc9b20 net.http: Add request.id to every request object (can be overridden by providing ex.id) 2016-07-07 23:07:19 +01:00
Kim Alvefur
b1ec0f7993 net.server_event: Schedule another read callback if there is still data left in buffer after reading (fixes #583 for real) 2016-05-04 15:29:11 +02:00
Kim Alvefur
8e0208a805 net.server_event: Collect entire one line function on one line 2016-05-04 15:20:33 +02:00
Kim Alvefur
4c8e24cd0a Merge 0.9->0.10 2016-04-19 19:00:19 +02:00
Kim Alvefur
9f66da1df0 net.server_event: Check the buffer *length*, not the buffer itself (Fixes 100% cpu usage introduced in 65abd9d7bf88) 2016-04-19 18:58:30 +02:00
Kim Alvefur
be79af9fbb Merge 0.9->0.10 2016-04-19 18:23:02 +02:00
Kim Alvefur
376dab8b5e net.server_event: Return the correct value as timeout 2016-04-19 18:20:39 +02:00
Kim Alvefur
49aa55a51d net.server_event: Fix traceback if event re-added during starttls 2016-04-19 18:18:57 +02:00
Kim Alvefur
ee3e8bbd38 Merge 0.9->0.10 2016-04-19 17:30:30 +02:00
Kim Alvefur
2bf3239f76 net.server_event: Re-add write event if writebuffer is non-empty after write (eg due to writes from ondrain callback) (fixes #661) 2016-04-19 17:24:00 +02:00
Kim Alvefur
e83b7f442b net.server_event: Return true from conn:resume() to indicate success 2016-03-02 16:30:46 +01:00
Kim Alvefur
52f557dece net.server_event: Prevent resuming connections without readcallback, eg closed connections (fixes #590) 2016-03-02 16:30:05 +01:00
Kim Alvefur
2ed7876bea server_select: Add logging of when servers are paused and resumed 2016-01-22 02:00:43 +01:00
Kim Alvefur
c46a125d73 server_select: Pause and mark server as full if accepting a client fails (fixes #597) 2016-01-22 02:00:27 +01:00
Kim Alvefur
c2f7450809 server_select: Retry accepting clients from full servers after 10s (matches libevent behaviour) 2016-01-22 01:59:25 +01:00
Kim Alvefur
a1560114d0 server_select: Keep track of which server listeners are full 2016-01-22 01:58:39 +01:00
Kim Alvefur
ecf5de4a4d net.dns: Remember query only after it was sent, in case it was not (fixes #598) 2016-01-21 22:26:46 +01:00
Matthew Wild
76de073eea Backout 88d54bec26b7 prior to release, as it certainly requires more testing 2016-01-08 13:01:27 +00:00
Kim Alvefur
58885565fe net.dns: Allow a zone id in resolv.conf (eg like %eth0) 2016-01-04 15:46:06 +01:00
daurnimator
a96b736661 server_event: addclient: wrapclient already calls startconnection for us [backported from trunk] 2013-12-18 18:11:47 -05:00
Kim Alvefur
5c224f9d18 server_event: Split long list of assignments into multiple lines for readability 2016-04-05 20:41:50 +02:00
Kim Alvefur
dc117b2dc5 server_event: Fix indentation (again) 2016-04-05 20:39:36 +02:00
daurnimator
411cd234e3 net.server_select: Remove do-nothing os_difftime calls [backported from trunk] 2015-01-19 14:01:11 -05:00
Kim Alvefur
fd043915e0 net.dns: Import unpack() in forward-compatible way (Fixes compat with Lua5.2+) 2016-03-28 19:56:12 +02:00
Matthew Wild
8967760df5 net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck] 2016-03-10 17:52:03 +00:00
Kim Alvefur
70a7adc1c1 Merge 0.9->0.10 2016-03-02 16:32:37 +01:00
Kim Alvefur
6116ba8cfb Merge 0.9->0.10 2016-01-22 14:49:05 +01:00
Kim Alvefur
83e7c91e01 net.http.server: Return from listen_on() whatever net.server.addserver() returns 2016-01-16 22:43:11 +01:00
Kim Alvefur
de6d620539 net.server_select: Add 'server' method to client connections (present in server_event) 2016-01-09 23:54:19 +01:00
Kim Alvefur
ebdebb946d Merge 0.9->0.10 2016-01-08 16:16:08 +01:00
Kim Alvefur
6a9bce5dae server_select: Forward the actual TLS handshake error message 2016-01-03 17:19:14 +01:00
Matthew Wild
e5691fed79 net.server_select: Close all connections when quitting (and not just stepping), matches server_event 2016-01-02 20:42:20 +00:00
Matthew Wild
3b1c2ebbd9 net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() ) 2016-01-02 20:40:34 +00:00
Matthew Wild
6d8484bb7b net.http.server: Import util.cache 2015-12-03 16:12:44 +00:00
Matthew Wild
12f9aac248 net.http.server: Use new util.cache to remember wildcard event handlers 2015-12-03 14:54:29 +00:00
Kim Alvefur
b75d87f63d net.websocket.frames: Fix syntax error due to code copy pasting 2015-10-06 18:08:58 +02:00
Kim Alvefur
0ce785a39c net.websocket.frames: Use struct packing in Lua 5.3 or struct lib if available 2015-10-06 18:05:27 +02:00
Kim Alvefur
2efcb9f82f net.websocket.frames: Pack and unpack 64bit ints without overflows (lua-bitop/bit32 are 32bit) 2015-10-06 18:03:04 +02:00
Kim Alvefur
5d941b553a net.websocket.frames: Link to documentation when bitop is missing 2015-10-06 16:49:01 +02:00
Kim Alvefur
fc34f3fdbf net.websocket.frames: Throw an error if no bit lib is found 2015-10-06 16:26:23 +02:00
Kim Alvefur
49fccb11b2 net.websocket.frames: Simplify import of bitlib 2015-10-06 16:06:22 +02:00
Kim Alvefur
c77e828701 Merge 2015-09-25 18:07:33 +02:00
Kim Alvefur
e80179ba6e server_event: Fix indentation 2015-09-25 17:56:21 +02:00
Kim Alvefur
5e13a9ffc0 server_event: Put function keyword on same line as the coroutine.wrap it's being passed to 2015-09-25 17:55:06 +02:00