@@ -60,25 +60,29 @@ The diagram below shows possible connection states and transitions:
60
60
61
61
.. ifconfig :: builder not in ('latex', )
62
62
63
- .. image :: net_states.svg
63
+ .. image :: net_states.png
64
64
:align: center
65
- :alt: net_states.svg
65
+ :alt: net_states.png
66
66
67
67
On this diagram:
68
68
69
- * ``net_box.connect() `` method spawns a worker fiber, which will establish the connection and start the state machine.
69
+ * ``net_box.connect() `` method spawns a worker fiber, which will establish the connection and start the state machine.
70
70
71
- * The state machine goes to the ‘ initial‘ state.
71
+ * The state machine goes to the `` initial `` state.
72
72
73
- * Authentication and schema upload.
74
- It is possible later on to re-enter the ‘ fetch_schema’ state from ‘ active’ to trigger schema reload.
73
+ * Authentication and schema upload.
74
+ It is possible later on to re-enter the `` fetch_schema `` state from `` active `` to trigger schema reload.
75
75
76
- * The transport goes to the ‘error’ state in case of an error.
77
- It can happen, for example, if the server closed the connection.
78
- If the ``reconnect_after `` option is set, instead of the ‘error’ state, the transport goes to the ‘error_reconnect’ state.
76
+ * If there was an active :ref: `on_shutdown <net_box-on_shutdown >` trigger, the state changes
77
+ to the ``graceful_shutdown `` state after the trigger return.
79
78
80
- * ``conn.close() `` method sets the state to ‘closed’ and kills the worker.
81
- If the transport is already in the ‘error’ state, ``close() `` does nothing.
79
+ * The transport goes to the ‘error’ state in case of an error.
80
+ It can happen, for example, if the server closed the connection.
81
+ If the ``reconnect_after `` option is set, instead of the ‘error’ state,
82
+ the transport goes to the ``error_reconnect `` state.
83
+
84
+ * ```conn.close() `` method sets the state to ``closed `` and kills the worker.
85
+ `If the transport is already in the ``error `` state, ``close() `` does nothing.
82
86
83
87
===============================================================================
84
88
Index
0 commit comments