# HG changeset patch # User Kim Alvefur # Date 1461082839 -7200 # Node ID 1909bde0e79f8993126035f4ed7b994618bb982e # Parent c774622ad9db7cf15d2328987bef5df8d1e16d2e net.server_event: Return the correct value as timeout diff -r c774622ad9db -r 1909bde0e79f net/server_event.lua --- a/net/server_event.lua Tue Apr 19 18:18:57 2016 +0200 +++ b/net/server_event.lua Tue Apr 19 18:20:39 2016 +0200 @@ -549,7 +549,7 @@ -- data possibly written from ondrain return EV_WRITE, cfg.WRITE_TIMEOUT elseif interface.eventreadtimeout then - return EV_WRITE, EV_TIMEOUT + return EV_WRITE, cfg.WRITE_TIMEOUT end interface.eventwrite = nil return -1