Lines Matching refs:left

12    <make this connection our "left" connection, potentially disconnecting
297 if (dir->left != NULL && dir->right != NULL) {
314 i_assert(dir->left != conn);
320 } else if (dir->left == NULL) {
322 } else if (dir->left->host == conn->host) {
323 i_warning("Replacing left director connection %s with %s",
324 dir->left->host->name, conn->host->name);
325 director_connection_deinit(&dir->left, t_strdup_printf(
327 } else if (dir->left->verifying_left) {
328 /* we're waiting to verify if our current left is still
329 working. if we don't receive a PONG, the current left
330 gets disconnected and a new left gets assigned. if we do
331 receive a PONG, we'll wait until the current left
332 disconnects us and then reassign the new left. */
334 } else if (director_host_cmp_to_self(dir->left->host, conn->host,
338 director_connection_send_connect(conn, dir->left->host);
344 the ring has finished handshaking its left side, so the
348 dir->left = conn;
350 conn->name = i_strdup_printf("%s/left", conn->host->name);
363 conn->to_disconnect == NULL && conn != dir->left) {
515 to our right side (which might become our left side).
517 b) it's our current "left" connection. the previous connection
520 c) we have an existing ring. tell our current "left" to connect to
525 first that our left side is actually still functional.
545 } else if (dir->left == NULL) {
546 /* a) - just in case the left is also our right side reset
550 director_connect(dir, "Connecting to left");
551 } else if (dir->left->host == conn->host) {
553 i_assert(dir->left != conn);
554 director_connection_deinit(&dir->left,
556 } else if (director_host_cmp_to_self(conn->host, dir->left->host,
562 director_connection_send(dir->left, connect_str);
565 dir->left->verifying_left = TRUE;
566 director_connection_ping(dir->left);
1430 /* handshaked to left side. tell it we've received the
1434 /* tell the "right" director about the "left" one */
1439 /* this is our "left" side. */
1568 i_assert(dir->left != NULL && dir->right != NULL);
1818 if (conn->in && conn != dir->left && conn->me_received &&
1820 director_host_cmp_to_self(dir->left->host, conn->host,
1822 director_connection_send_connect(conn, dir->left->host);
1909 if (conn == conn->dir->left) {
1910 /* our left side is functional. tell all the wrong
2421 if (dir->left == conn) {
2422 dir->left = NULL;
2424 use it as the new "left" */
2454 if (dir->left == NULL || dir->right == NULL) {