Skip to content
Snippets Groups Projects
Commit 28dc7d57 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Preserve session id when running an iproto on_disconnect trigger.

There is already a test for this, but it is only possible
to repeat the condition for a bug in client/server testing (not localhost).
parent 6445380b
No related merge requests found
......@@ -799,6 +799,7 @@ iproto_process_connect(struct iproto_request *request)
static void
iproto_process_disconnect(struct iproto_request *request)
{
fiber_set_sid(fiber, request->session->sid);
/* Runs the trigger, which may yield. */
iproto_session_gc(request->session);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment