diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-08-16 21:32:10 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-08-16 21:32:10 +0100 |
commit | 798c75481ecc618a53940e23a4c8c285e64088fc (patch) | |
tree | 897f20941c180be9d51c52089b62f807e0c4bb6f /net/server.lua | |
parent | 60e7583c9f6f93928b5d7edca190a793d272293e (diff) | |
download | prosody-798c75481ecc618a53940e23a4c8c285e64088fc.tar.gz prosody-798c75481ecc618a53940e23a4c8c285e64088fc.zip |
net.server: Comment all calls to mem_free/collectgarbage... not really suitable for a realtime server, let's trust Lua's GC - it's good.
Diffstat (limited to 'net/server.lua')
-rw-r--r-- | net/server.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/server.lua b/net/server.lua index 966006c1..069db50f 100644 --- a/net/server.lua +++ b/net/server.lua @@ -246,7 +246,7 @@ wrapserver = function( listeners, socket, ip, serverport, pattern, sslctx, maxco _socketlist[ socket ] = nil
handler = nil
socket = nil
- mem_free( )
+ --mem_free( )
out_put "server.lua: closed server handler and removed sockets from list"
end
handler.ip = function( )
@@ -373,7 +373,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport handler = nil
end
socket = nil
- mem_free( )
+ --mem_free( )
if server then
server.remove( )
end
@@ -559,7 +559,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport socket, err = ssl_wrap( socket, sslctx ) -- wrap socket
if err then
out_put( "server.lua: ssl error: ", tostring(err) )
- mem_free( )
+ --mem_free( )
return nil, nil, err -- fatal error
end
socket:settimeout( 0 )
@@ -664,7 +664,7 @@ closesocket = function( socket ) _readlistlen = removesocket( _readlist, socket, _readlistlen )
_socketlist[ socket ] = nil
socket:close( )
- mem_free( )
+ --mem_free( )
end
----------------------------------// PUBLIC //--
@@ -733,7 +733,7 @@ closeall = function( ) _sendlist = { }
_timerlist = { }
_socketlist = { }
- mem_free( )
+ --mem_free( )
end
getsettings = function( )
|