Skip to content

Commit a1bfcad

Browse files
committed
Add diagram, fix .po file
1 parent 7ad27e4 commit a1bfcad

File tree

5 files changed

+26
-120
lines changed

5 files changed

+26
-120
lines changed

doc/reference/reference_lua/box_events/system_events.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ that are necessary to find out the most recent writable leader.
8888
MP_STR “leader”: MP_UINT box.info.election.leader,
8989
}
9090
91-
9291
box.schema
9392
~~~~~~~~~~
9493

doc/reference/reference_lua/net_box.rst

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,29 @@ The diagram below shows possible connection states and transitions:
6060

6161
.. ifconfig:: builder not in ('latex', )
6262

63-
.. image:: net_states.svg
63+
.. image:: net_states.png
6464
:align: center
65-
:alt: net_states.svg
65+
:alt: net_states.png
6666

6767
On this diagram:
6868

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.
7070

71-
* The state machine goes to the initial state.
71+
* The state machine goes to the ``initial`` state.
7272

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.
7575

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.
7978

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.
8286

8387
===============================================================================
8488
Index
189 KB
Loading

0 commit comments

Comments
 (0)