Software /
code /
prosody
Comparison
net/server_event.lua @ 2939:dc73cbc69bd5
net.server_event: Bump timeout values up somewhat
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 24 Mar 2010 22:46:57 +0000 |
parent | 2731:373a7c960409 |
child | 2941:a2b01936f8f9 |
comparison
equal
deleted
inserted
replaced
2937:9380838a19dc | 2939:dc73cbc69bd5 |
---|---|
19 local LAST_MODIFIED = "2009/11/20" | 19 local LAST_MODIFIED = "2009/11/20" |
20 | 20 |
21 local cfg = { | 21 local cfg = { |
22 MAX_CONNECTIONS = 100000, -- max per server connections (use "ulimit -n" on *nix) | 22 MAX_CONNECTIONS = 100000, -- max per server connections (use "ulimit -n" on *nix) |
23 MAX_HANDSHAKE_ATTEMPS = 1000, -- attemps to finish ssl handshake | 23 MAX_HANDSHAKE_ATTEMPS = 1000, -- attemps to finish ssl handshake |
24 HANDSHAKE_TIMEOUT = 30, -- timout in seconds per handshake attemp | 24 HANDSHAKE_TIMEOUT = 60, -- timout in seconds per handshake attemp |
25 MAX_READ_LENGTH = 1024 * 1024 * 1024 * 1024, -- max bytes allowed to read from sockets | 25 MAX_READ_LENGTH = 1024 * 1024 * 1024 * 1024, -- max bytes allowed to read from sockets |
26 MAX_SEND_LENGTH = 1024 * 1024 * 1024 * 1024, -- max bytes size of write buffer (for writing on sockets) | 26 MAX_SEND_LENGTH = 1024 * 1024 * 1024 * 1024, -- max bytes size of write buffer (for writing on sockets) |
27 ACCEPT_DELAY = 10, -- seconds to wait until the next attemp of a full server to accept | 27 ACCEPT_DELAY = 10, -- seconds to wait until the next attemp of a full server to accept |
28 READ_TIMEOUT = 60 * 30, -- timeout in seconds for read data from socket | 28 READ_TIMEOUT = 60 * 60 * 6, -- timeout in seconds for read data from socket |
29 WRITE_TIMEOUT = 30, -- timeout in seconds for write data on socket | 29 WRITE_TIMEOUT = 180, -- timeout in seconds for write data on socket |
30 CONNECT_TIMEOUT = 20, -- timeout in seconds for connection attemps | 30 CONNECT_TIMEOUT = 20, -- timeout in seconds for connection attemps |
31 CLEAR_DELAY = 5, -- seconds to wait for clearing interface list (and calling ondisconnect listeners) | 31 CLEAR_DELAY = 5, -- seconds to wait for clearing interface list (and calling ondisconnect listeners) |
32 DEBUG = true, -- show debug messages | 32 DEBUG = true, -- show debug messages |
33 } | 33 } |
34 | 34 |