Merge 0.9->0.10

This commit is contained in:
Kim Alvefur 2016-04-19 18:23:02 +02:00
commit be79af9fbb

View file

@ -518,12 +518,11 @@ local function handleclient( client, ip, port, server, pattern, listener, sslctx
elseif interface.startsslcallback then -- start ssl connection if needed
debug "starting ssl handshake after writing"
interface.eventstarthandshake = addevent( base, nil, EV_TIMEOUT, interface.startsslcallback, 0 )
elseif interface.eventreadtimeout then
return EV_WRITE, EV_TIMEOUT
end
if interface.writebuffer ~= 0 then
elseif interface.writebuffer ~= 0 then
-- data possibly written from ondrain
return EV_WRITE, cfg.WRITE_TIMEOUT
elseif interface.eventreadtimeout then
return EV_WRITE, cfg.WRITE_TIMEOUT
end
interface.eventwrite = nil
return -1