# HG changeset patch # User Matthew Wild # Date 1258862800 0 # Node ID 465a7481ab9623991f9818891647c838838492c2 # Parent f7b589f798af5189fbcccc20fcf92793d32f9153 net.server_event: Remove premature non-optimisation diff -r f7b589f798af -r 465a7481ab96 net/server_event.lua --- a/net/server_event.lua Sun Nov 22 04:06:00 2009 +0000 +++ b/net/server_event.lua Sun Nov 22 04:06:40 2009 +0000 @@ -516,7 +516,7 @@ end end end - local usingssl, receive = interface._usingssl, interface.receive; + interface.readcallback = function( event ) -- called on read events --vdebug( "new client read event, id/ip/port:", interface, ip, port ) if interface.noreading or interface.fatalerror then -- leave this event @@ -531,7 +531,7 @@ interface.eventread = nil return -1 else -- can read - if usingssl then -- handle luasec + if interface._usingssl then -- handle luasec if interface.eventwritetimeout then -- ok, in the past writecallback was regged local ret = interface.writecallback( ) -- call it --vdebug( "tried to write in readcallback, result:", ret )