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/en/architecture_design.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,16 +93,17 @@ The request processing generally includes the following processes:
93
93
94
94
The service exit process generally includes the following processes:
95
95
96
-
1. Wait for all requests received by the server to be processed(To avoid being unable to exit due to waiting, the default maximum waiting time is set to 5 seconds.It can be configured through server::stop_max_wait_time);
97
-
2. Stop the listening and reading events of the server network connection;
98
-
3. Close the server network connections;
99
-
4. Call the `Destroy` method of the `TrpcApp` business subclass to stop the dynamic resources created by the business (for example: started threads);
100
-
5. Stop the dynamic resources created by the plugins (for example: threads started inside the plugins);
101
-
6. Stop the framework runtime environment runtime;
102
-
7. Release the resources inside the runtime environment of the framework;
103
-
8. Release the internal resources of the framework operating environment TrpcServer;
104
-
9. Release the internal resources of the framework operating environment TrpcClient;
105
-
10. The program exits;
96
+
1. Unregister all services from the name service to prevent future traffic from being routed to this node;
97
+
2. Disable the readable event for connections, including:a. Disable the readable event for the listening socket to avoid creating new connections,b. Disable the readable event for the connected socket to avoid receiving new requests from that socket;
98
+
3. Wait for all requests received by the server to be processed(To avoid being unable to exit due to waiting, the default maximum waiting time is set to 5 seconds.It can be configured through server::stop_max_wait_time);
99
+
4. Close the server network connections;
100
+
5. Call the `Destroy` method of the `TrpcApp` business subclass to stop the dynamic resources created by the business (for example: started threads);
101
+
6. Stop the dynamic resources created by the plugins (for example: threads started inside the plugins);
102
+
7. Stop the framework runtime environment runtime;
103
+
8. Release the resources inside the runtime environment of the framework;
104
+
9. Release the internal resources of the framework operating environment TrpcServer;
105
+
10. Release the internal resources of the framework operating environment TrpcClient;
0 commit comments