Projects tigase _server server-core Issues #1159
Improve handling establishing and terminating of the session (#1159)
wojciech.kapcia@tigase.net opened 4 years ago

Currently, when opening new connection and session, SessionManager checks all other resource connections, which could cause unwanted results under high connection ratio from the same user.

Proposed changes:

  • in tigase.server.xmppsession.SessionManager#registerNewSession other sessions should not be tested more often than X (30-60s)
  • after receiving STREAM_CLOSED/STREAM_FINISHED mark the session as "being closed" and start "closing timer" and skip testing them in .registerNewSession()
Andrzej Wójcik (Tigase) commented 4 years ago

I've added required features and commited changes to separate branch (named as issue id).

The timer was already there (on CLOSE), so I decided that there is no point in reimplementing it.

wojciech.kapcia@tigase.net commented 4 years ago

Thank you, looks ok.

issue 1 of 1
Type
Task
Priority
Normal
Assignee
Version
tigase-server-8.1.0
Spent time
2h 15m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1159
Please wait...
Page is in error, reload to recover