# HG changeset patch # User Timo Sirainen # Date 1510785857 -7200 # Node ID 0b8c6953335399e06d9ce51677dd8d82edc43356 # Parent 2cd3df7171e151b4d5a1de35d341db7e26391fa1 director: Reconnect after detecting a write failure to director If disconnection is detected during write failure, or "Output buffer full" occurs, the connection is disconnected. However, if this was the right side connection, it wasn't automatically reconnected to. This left the ring nonworking. diff -r 2cd3df7171e1 -r 0b8c69533353 src/director/director-connection.c --- a/src/director/director-connection.c Thu Sep 21 00:38:33 2017 +0200 +++ b/src/director/director-connection.c Thu Nov 16 00:44:17 2017 +0200 @@ -2312,7 +2312,11 @@ static void director_disconnect_write_error(struct director_connection *conn) { + struct director *dir = conn->dir; + director_connection_deinit(&conn, "write failure"); + if (dir->right == NULL) + director_connect(dir, "Reconnecting after write failure"); } void director_connection_send(struct director_connection *conn,