Fix timer.

This commit is contained in:
John Livingston
2023-05-25 18:19:18 +02:00
parent 589db6566c
commit 3b8042ebe2
2 changed files with 3 additions and 1 deletions

View File

@ -601,7 +601,8 @@ function route_to_new_session(event)
-- so we will send keepalives on outgoing connections (in addition to keepalives sent by mod_s2s).
session.ws_s2s_keepalive_timer = module:add_timer(websocket_s2s_ping_interval, function ()
log("debug", "Timer triggered, sending a keepalive on outgoing websocket s2s");
return session.conn:write(build_frame({ opcode = 0x9, FIN = true }));
session.conn:write(build_frame({ opcode = 0x9, FIN = true }));
return websocket_s2s_ping_interval;
end);
end