Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 13008:7b952553bd60
sessionmanager: Preserve 'since' property of original session after resumption
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 29 Mar 2023 13:01:53 +0100 |
parent | 12972:ead41e25ebc0 |
child | 13095:1693bd4de283 |
comparison
equal
deleted
inserted
replaced
13007:534c055ec378 | 13008:7b952553bd60 |
---|---|
102 if replaced_conn then | 102 if replaced_conn then |
103 to_session.log("debug", "closing a replaced connection for this session"); | 103 to_session.log("debug", "closing a replaced connection for this session"); |
104 replaced_conn:close(); | 104 replaced_conn:close(); |
105 end | 105 end |
106 | 106 |
107 to_session.since = from_session.since; | |
107 to_session.ip = from_session.ip; | 108 to_session.ip = from_session.ip; |
108 to_session.conn = from_session.conn; | 109 to_session.conn = from_session.conn; |
109 to_session.rawsend = from_session.rawsend; | 110 to_session.rawsend = from_session.rawsend; |
110 to_session.rawsend.session = to_session; | 111 to_session.rawsend.session = to_session; |
111 to_session.rawsend.conn = to_session.conn; | 112 to_session.rawsend.conn = to_session.conn; |