Mercurial > prosody-hg
comparison net/server_epoll.lua @ 9825:5ccce16c6449
net.server_epoll: Increase send_timeout to 3 minutes (to match server_event)
The separate connect_timeout means we can afford a longer send_timeout
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 09 Feb 2019 20:54:35 +0100 |
| parents | 729de68f0068 |
| children | 20bf5b47c1fb |
comparison
equal
deleted
inserted
replaced
| 9824:729de68f0068 | 9825:5ccce16c6449 |
|---|---|
| 37 local default_config = { __index = { | 37 local default_config = { __index = { |
| 38 -- If a connection is silent for this long, close it unless onreadtimeout says not to | 38 -- If a connection is silent for this long, close it unless onreadtimeout says not to |
| 39 read_timeout = 14 * 60; | 39 read_timeout = 14 * 60; |
| 40 | 40 |
| 41 -- How long to wait for a socket to become writable after queuing data to send | 41 -- How long to wait for a socket to become writable after queuing data to send |
| 42 send_timeout = 60; | 42 send_timeout = 180; |
| 43 | 43 |
| 44 -- How long to wait for a socket to become writable after creation | 44 -- How long to wait for a socket to become writable after creation |
| 45 connect_timeout = 20; | 45 connect_timeout = 20; |
| 46 | 46 |
| 47 -- Some number possibly influencing how many pending connections can be accepted | 47 -- Some number possibly influencing how many pending connections can be accepted |
