diff options
author | Kim Alvefur <zash@zash.se> | 2021-06-16 23:53:00 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-06-16 23:53:00 +0200 |
commit | f55f6be0ff08fdbc44f0b88cc759885eb1296055 (patch) | |
tree | cb915e806b9fdfdd170b7525652030bab001feda /spec/util_ip_spec.lua | |
parent | aa041ffa1060e07be9a02ef6b523623f364f962a (diff) | |
download | prosody-f55f6be0ff08fdbc44f0b88cc759885eb1296055.tar.gz prosody-f55f6be0ff08fdbc44f0b88cc759885eb1296055.zip |
mod_s2s: Bail if connection is destroyed after attempting to open stream
Fixes "attempt to compare number with nil" because `session.version` has
been cleared by s2smanager.destroy_session.
This can happen with the server_epoll setting opportunistic_writes
enabled, which means that it can notice that the connection failed at
this point, after which it triggers the whole chain of events that leads
to session destruction and "cleaning" most of the session fields.
Diffstat (limited to 'spec/util_ip_spec.lua')
0 files changed, 0 insertions, 0 deletions