worker->worker.v = proxy_client_dsync_worker;
worker->fd_in = fd_in;
worker->fd_out = fd_out;
- worker->to = timeout_add(DSYNC_PROXY_TIMEOUT_MSECS,
+ worker->to = timeout_add(DSYNC_PROXY_CLIENT_TIMEOUT_MSECS,
proxy_client_worker_timeout, worker);
worker->io = io_add(fd_in, IO_READ, proxy_client_worker_input, worker);
worker->input = i_stream_create_fd(fd_in, (size_t)-1, FALSE);
server->io = io_add(fd_in, IO_READ, proxy_server_input, server);
server->input = i_stream_create_fd(fd_in, (size_t)-1, FALSE);
server->output = o_stream_create_fd(fd_out, (size_t)-1, FALSE);
- server->to = timeout_add(DSYNC_PROXY_TIMEOUT_MSECS,
+ server->to = timeout_add(DSYNC_PROXY_SERVER_TIMEOUT_MSECS,
dsync_proxy_server_timeout, NULL);
o_stream_set_flush_callback(server->output, proxy_server_output,
server);
#include "dsync-data.h"
-#define DSYNC_PROXY_TIMEOUT_MSECS (15*60*1000)
+#define DSYNC_PROXY_CLIENT_TIMEOUT_MSECS (14*60*1000)
+#define DSYNC_PROXY_SERVER_TIMEOUT_MSECS (15*60*1000)
+
#define DSYNC_PROXY_CLIENT_GREETING_LINE "dsync-client\t1"
#define DSYNC_PROXY_SERVER_GREETING_LINE "dsync-server\t1"