Skip to content

Commit 317d543

Browse files
committed
we can enter closed from shutdown && timeout, too
_connection_free() and connection_signal_shutdown() both enter the closed state from the timout state.
1 parent 5df053a commit 317d543

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/server/connection.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,8 @@ static void connection_state_enter_closed(connection_t *conn)
656656
switch (conn->pub.state) {
657657
case CONNECTION_STATE_CONNECTING:
658658
case CONNECTION_STATE_CONNECTED:
659+
case CONNECTION_STATE_SHUTDOWN:
660+
case CONNECTION_STATE_TIMEOUT:
659661
case CONNECTION_STATE_FAILED:
660662
break;
661663

0 commit comments

Comments
 (0)