mod_admin_telnet: Don't rely on getpeerchain returning an empty list
[prosody.git] / net / server_event.lua
index 089269398cfc68bf28ab6bba679105a097074275..5eae95a9a04bc8e44880b16c414736828cfc3ddb 100644 (file)
@@ -23,6 +23,7 @@ local cfg = {
        HANDSHAKE_TIMEOUT     = 60,  -- timeout in seconds per handshake attempt
        MAX_READ_LENGTH       = 1024 * 1024 * 1024 * 1024,  -- max bytes allowed to read from sockets
        MAX_SEND_LENGTH       = 1024 * 1024 * 1024 * 1024,  -- max bytes size of write buffer (for writing on sockets)
+       ACCEPT_QUEUE          = 128,  -- might influence the length of the pending sockets queue
        ACCEPT_DELAY          = 10,  -- seconds to wait until the next attempt of a full server to accept
        READ_TIMEOUT          = 60 * 60 * 6,  -- timeout in seconds for read data from socket
        WRITE_TIMEOUT         = 180,  -- timeout in seconds for write data on socket
@@ -460,7 +461,6 @@ end
 local handleclient;
 do
        local string_sub = string.sub  -- caching table lookups
-       local string_len = string.len
        local addevent = base.addevent
        local socket_gettime = socket.gettime
        function handleclient( client, ip, port, server, pattern, listener, sslctx )  -- creates an client interface