Software /
code /
prosody
Comparison
net/server_event.lua @ 2953:3cafa20e22e9
Merge 0.7/waqas->0.7/MattJ
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 30 Mar 2010 19:46:53 +0100 |
parent | 2952:5069534f7f36 |
child | 2972:f9901175d535 |
comparison
equal
deleted
inserted
replaced
2951:294c359a05f5 | 2953:3cafa20e22e9 |
---|---|
18 local SCRIPT_AUTHOR = "blastbeat" | 18 local SCRIPT_AUTHOR = "blastbeat" |
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, -- attempts to finish ssl handshake |
24 HANDSHAKE_TIMEOUT = 60, -- timout in seconds per handshake attemp | 24 HANDSHAKE_TIMEOUT = 60, -- timout in seconds per handshake attempt |
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 attempt of a full server to accept |
28 READ_TIMEOUT = 60 * 60 * 6, -- 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 = 180, -- 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 attempts |
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 |
35 local function use(x) return rawget(_G, x); end | 35 local function use(x) return rawget(_G, x); end |