-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SDL must close only session in case mobile app does not answer on Heartbeat_request #1893
Comments
Contributor priority is set |
Works correctly on current develop (8c94933) |
@jacobkeeler @JackLivio please close the issue. |
HeartBeatMonitor is in charge of monitoring heartbeat timeout. There is separate HeartBeatMonitor for each connection. class HeartBeatMonitor : public threads::ThreadDelegate {
...
HeartBeatMonitor(uint32_t heartbeat_timeout_mseconds, Connection* connection);
void AddSession(uint8_t session_id);
void RemoveSession(uint8_t session_id);
... void HeartBeatMonitor::Process() {
sessions_list_lock_.Acquire();
SessionMap::iterator it = sessions_.begin();
while (it != sessions_.end()) {
... And in case if Hearbeat timeout elapsed HeartBeatMonitor will close certain session : void HeartBeatMonitor::Process() {
...
if (state.HasTimeoutElapsed()) {
const uint8_t session_id = it->first;
if (state.IsReadyToClose()) {
LOG4CXX_WARN(logger_, "Will close session");
sessions_list_lock_.Release();
RemoveSession(session_id);
connection_->CloseSession(session_id);
sessions_list_lock_.Acquire();
...
} |
There is some extension for the initial requirement: Currently on a head of develop (0b19cf4) SDL close such connection, so issue is reproduced. Description of the issue is updated. |
Requires additional testing with the updated script that is provided. |
Defect is reproduced on develop branch(0b19cf4). |
Occurrence:
Always
Steps to reproduce:
Expected result:
Mobile connection is still alive and it's possible to create new mobile session
Actual result:
Mobile connection is closed
Environment:
Test script:
1893_ATF_HeartBeat_App_does_not_send_HB_and_does_not_respond.lua
Expected delivery
The text was updated successfully, but these errors were encountered: