You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/notes/shutdown.adoc
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ How does the router shut down when interrupted with ctrl-C ?
34
34
including itself as one of the worker threads.
35
35
36
36
... thread_run() +
37
-
is in a loop processing batches of events, calling
37
+
is in a loop processing batches of events, calling
38
38
handle() on each event.
39
39
40
40
.... handle() +
@@ -43,9 +43,9 @@ How does the router shut down when interrupted with ctrl-C ?
43
43
thread, and then returns 'false'.
44
44
45
45
... thread_run() receives false return from handle(), indicating
46
-
that the thread is no longer running. It drops out of the
47
-
running loop. If there is a connection, it calls
48
-
qd_conn_event_batch_complete() with last arg false, indicating that
46
+
that the thread is no longer running. It drops out of the
47
+
running loop. If there is a connection, it calls
48
+
qd_conn_event_batch_complete() with last arg false, indicating that
49
49
the connection has not closed. It then calls pn_proactor_done()
50
50
and returns, to be joined by qd_server_run().
51
51
@@ -61,8 +61,8 @@ How does the router shut down when interrupted with ctrl-C ?
61
61
62
62
. main_process() +
63
63
nulls out and dispatch pointer, and calls qd_dispatch_free().
64
-
It then flushes any remaining content in stdout, disables its
65
-
SIGINT handler, and sends SIGINT
64
+
It then flushes any remaining content in stdout, disables its
65
+
SIGINT handler, and sends SIGINT
66
66
to itself, terminating the qdrouterd process.
67
67
68
68
.. qd_dispatch_free() +
@@ -126,9 +126,3 @@ How does the router shut down when interrupted with ctrl-C ?
126
126
127
127
... qd_alloc_finalize() +
128
128
All allocated items should have been released by now, and there should be only a single thread running. No locking will be done. Clean up all items on the types list. Reclaim the items on the global free pool. Reclaim items on thread pools. Check stats to detect allocated items that have not been freed.
0 commit comments