Fixed session timeouts using func.hangup instead of dcb_close.
This commit is contained in:
@ -962,7 +962,7 @@ void session_close_timeouts(void* data)
|
|||||||
ses->service->conn_timeout > 0 &&
|
ses->service->conn_timeout > 0 &&
|
||||||
hkheartbeat - ses->client->last_read > ses->service->conn_timeout * 10)
|
hkheartbeat - ses->client->last_read > ses->service->conn_timeout * 10)
|
||||||
{
|
{
|
||||||
ses->client->func.hangup(ses->client);
|
dcb_close(ses->client);
|
||||||
}
|
}
|
||||||
|
|
||||||
spinlock_acquire(&session_spin);
|
spinlock_acquire(&session_spin);
|
||||||
|
|||||||
Reference in New Issue
Block a user