mod_c2s: Don't try to keep alive sessions where the stream is not (yet) open

This commit is contained in:
Kim Alvefur 2016-08-07 20:51:34 +02:00
parent 0c9ea08015
commit 8631e529ba

View file

@ -294,7 +294,10 @@ function listener.onreadtimeout(conn)
end
local function keepalive(event)
return event.session.send(' ');
local session = event.session;
if not session.notopen then
return event.session.send(' ');
end
end
function listener.associate_session(conn, session)