Comparison

core/sessionmanager.lua @ 12820:b95771171439

sessionmanager: Pluck sasl_handler from old session when resuming (fixes #1785)
author Matthew Wild <mwild1@gmail.com>
date Thu, 29 Dec 2022 16:23:08 +0000
parent 12677:3b9771d496ed
child 12821:a4ac16e5b655
comparison
equal deleted inserted replaced
12819:764a4bf2580a 12820:b95771171439
114 to_session.close = from_session.close; 114 to_session.close = from_session.close;
115 to_session.filter = from_session.filter; 115 to_session.filter = from_session.filter;
116 to_session.filter.session = to_session; 116 to_session.filter.session = to_session;
117 to_session.filters = from_session.filters; 117 to_session.filters = from_session.filters;
118 to_session.send.filter = to_session.filter; 118 to_session.send.filter = to_session.filter;
119 to_session.sasl_handler = from_session.sasl_handler;
119 to_session.stream = from_session.stream; 120 to_session.stream = from_session.stream;
120 to_session.secure = from_session.secure; 121 to_session.secure = from_session.secure;
121 to_session.hibernating = nil; 122 to_session.hibernating = nil;
122 to_session.resumption_counter = (to_session.resumption_counter or 0) + 1; 123 to_session.resumption_counter = (to_session.resumption_counter or 0) + 1;
123 from_session.log = to_session.log; 124 from_session.log = to_session.log;