net/server_event.lua
changeset 5531 483f795f6f99
parent 5339 b5cae12411af
child 5625 e67891ad18d6
child 5755 9a9c2c254412
equal deleted inserted replaced
5530:d83482fc4a81 5531:483f795f6f99
    21 	MAX_CONNECTIONS       = 100000,  -- max per server connections (use "ulimit -n" on *nix)
    21 	MAX_CONNECTIONS       = 100000,  -- max per server connections (use "ulimit -n" on *nix)
    22 	MAX_HANDSHAKE_ATTEMPTS= 1000,  -- attempts to finish ssl handshake
    22 	MAX_HANDSHAKE_ATTEMPTS= 1000,  -- attempts to finish ssl handshake
    23 	HANDSHAKE_TIMEOUT     = 60,  -- timeout in seconds per handshake attempt
    23 	HANDSHAKE_TIMEOUT     = 60,  -- timeout in seconds per handshake attempt
    24 	MAX_READ_LENGTH       = 1024 * 1024 * 1024 * 1024,  -- max bytes allowed to read from sockets
    24 	MAX_READ_LENGTH       = 1024 * 1024 * 1024 * 1024,  -- max bytes allowed to read from sockets
    25 	MAX_SEND_LENGTH       = 1024 * 1024 * 1024 * 1024,  -- max bytes size of write buffer (for writing on sockets)
    25 	MAX_SEND_LENGTH       = 1024 * 1024 * 1024 * 1024,  -- max bytes size of write buffer (for writing on sockets)
       
    26 	ACCEPT_QUEUE          = 128,  -- might influence the length of the pending sockets queue
    26 	ACCEPT_DELAY          = 10,  -- seconds to wait until the next attempt of a full server to accept
    27 	ACCEPT_DELAY          = 10,  -- seconds to wait until the next attempt of a full server to accept
    27 	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
    28 	WRITE_TIMEOUT         = 180,  -- timeout in seconds for write data on socket
    29 	WRITE_TIMEOUT         = 180,  -- timeout in seconds for write data on socket
    29 	CONNECT_TIMEOUT       = 20,  -- timeout in seconds for connection attempts
    30 	CONNECT_TIMEOUT       = 20,  -- timeout in seconds for connection attempts
    30 	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)