From: Kim Alvefur Date: Wed, 4 May 2016 13:20:33 +0000 (+0200) Subject: net.server_event: Collect entire one line function on one line X-Git-Url: https://git.enpas.org/?p=prosody.git;a=commitdiff_plain;h=e82c820c9f8b97df4c30c8225bb23e4556b98495 net.server_event: Collect entire one line function on one line --- diff --git a/net/server_event.lua b/net/server_event.lua index 1329a43d..e0dc175f 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -588,10 +588,7 @@ local function handleclient( client, ip, port, server, pattern, listener, sslctx interface.eventwrite = addevent( base, interface.conn, EV_WRITE, interface.writecallback, cfg.WRITE_TIMEOUT ) end interface.eventreadtimeout = addevent( base, nil, EV_TIMEOUT, - function( ) - interface:_close() - end, cfg.READ_TIMEOUT - ) + function( ) interface:_close() end, cfg.READ_TIMEOUT) debug( "wantwrite during read attempt, reg it in writecallback but dont know what really happens next..." ) -- to be honest i dont know what happens next, if it is allowed to first read, the write etc... else -- connection was closed or fatal error