# HG changeset patch # User Kim Alvefur # Date 1639428409 -3600 # Node ID 9eb1a178293ec5a3185f03fb7a374b608818b04d # Parent 48f8fa6cea7bab3ed02a85c2e9a4a046358fa555 mod_smacks: Patch various self-references on the resumed session The number of places where the session is an upvalue to its own methods is too high! diff -r 48f8fa6cea7b -r 9eb1a178293e plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Mon Dec 13 21:17:54 2021 +0100 +++ b/plugins/mod_smacks.lua Mon Dec 13 21:46:49 2021 +0100 @@ -571,11 +571,16 @@ local migrated_session_log = session.log; original_session.ip = session.ip; original_session.conn = session.conn; + original_session.rawsend = session.rawsend; + original_session.rawsend.session = original_session; + original_session.rawsend.conn = original_session.conn; original_session.send = session.send; + original_session.send.session = original_session; original_session.close = session.close; original_session.filter = session.filter; original_session.filter.session = original_session; original_session.filters = session.filters; + original_session.send.filter = original_session.filter; original_session.stream = session.stream; original_session.secure = session.secure; original_session.hibernating = nil;