Hi Damian,
On Fri, 17 Feb 2023 at 13:58, Damian Minkov <
dame...@damencho.com> wrote:
>
> We have been running this patch for more than a month without noticing any major issues ... one thing I noticed today is this error, have seen it only once:
Sorry for the delayed response on this thread. Past few months have been busy.
It sounds like the original issue is easy to reproduce for you. Any
chance you can try it with the latest 0.12 code (e.g. the
'prosody-0.12' package from our repo)? We fixed a bug recently related
to smacks hibernation, and I'm not sure whether this is related or
not.
Skimming your patch, I'm not clear on exactly what the root cause is.
A hibernating session wouldn't actually be destroyed (just
session.conn removed), so I would expect things like the outgoing
stanza queue to remain.
Actually, I'm also not entirely clear on what the issue you're
experiencing is. The "hibernating too long" message is not necessarily
an error - it's expected behaviour if the client disconnects uncleanly
and does not return before the configured hibernation timeout, which
can be very common. In the case of a clean disconnect, the hibernation
code should not kick in at all. In the case of hibernation, the
session should not be destroyed until after the timeout period. Debug
logs during the disconnect of a client would help identify which of
these is happening.
Regards,
Matthew