worker: increase the waiting time of cookie auth message

This allows the connect-script to run for more time than
the default socket timeout, and be limited by the configured
authentication timeout ("auth-timeout").
This commit is contained in:
Nikos Mavrogiannopoulos
2017-01-04 16:16:32 +01:00
committed by GitLab
parent 176ba796c5
commit 83f600afda

View File

@@ -556,7 +556,7 @@ static int recv_cookie_auth_reply(worker_st * ws)
ret = recv_socket_msg(ws, ws->cmd_fd, AUTH_COOKIE_REP, &socketfd,
(void *)&msg,
(unpack_func) auth_cookie_reply_msg__unpack,
DEFAULT_SOCKET_TIMEOUT);
ws->config->auth_timeout);
if (ret < 0) {
oclog(ws, LOG_ERR, "error receiving auth reply message");
return ret;