Skip to content

Commit

Permalink
lib-imap-client: Remove hardcoded IMAPC_CONNECT_RETRY_WAIT_MSECS
Browse files Browse the repository at this point in the history
We have a setting for it now.
  • Loading branch information
sirainen committed Apr 10, 2017
1 parent 097c104 commit 2421911
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib-imap-client/imapc-connection.c
Expand Up @@ -1636,7 +1636,7 @@ static void imapc_connection_connected(struct imapc_connection *conn)
imapc_connection_try_reconnect(conn, t_strdup_printf(
"connect(%s, %u) failed: %s",
net_ip2addr(ip), conn->client->set.port,
strerror(err)), IMAPC_CONNECT_RETRY_WAIT_MSECS);
strerror(err)), conn->client->set.connect_retry_interval_msecs);
return;
}
conn->io = io_add(conn->fd, IO_READ, imapc_connection_input, conn);
Expand Down Expand Up @@ -1720,7 +1720,7 @@ static void imapc_connection_connect_next_ip(struct imapc_connection *conn)
net_ip2addr(ip), conn->client->set.port);
if (conn->prev_connect_idx+1 == conn->ips_count) {
imapc_connection_try_reconnect(conn, "No more IP address(es) to try",
IMAPC_CONNECT_RETRY_WAIT_MSECS);
conn->client->set.connect_retry_interval_msecs);
return;
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/lib-imap-client/imapc-connection.h
Expand Up @@ -8,9 +8,6 @@
#define IMAPC_THROTTLE_DEFAULT_MAX_MSECS (16*1000)
#define IMAPC_THROTTLE_DEFAULT_SHRINK_MIN_MSECS 500

/* If connect() fails, how long should we wait before reconnection */
#define IMAPC_CONNECT_RETRY_WAIT_MSECS 1000

struct imapc_client;
struct imapc_connection;

Expand Down

0 comments on commit 2421911

Please sign in to comment.