report socket is connected, instead of connecting
parent
6b47735b55
commit
5ad75d7db0
|
@ -308,6 +308,8 @@ static void tip_client_connect_cb(struct ev_loop *loop, struct ev_io *io, int ev
|
|||
return;
|
||||
}
|
||||
|
||||
syslog(LOG_INFO, "connected to %s to fetch file %s\n", addr, filename);
|
||||
|
||||
if (cli->state == TIP_CLIENT_NOTIFY_REDIRECT)
|
||||
snprintf(buf, sizeof(buf), "POST /%s HTTP/1.1\r\n\r\n", filename);
|
||||
else
|
||||
|
@ -368,8 +370,6 @@ static int tip_client_connect(const char *addr)
|
|||
ev_io_init(&cli->io, tip_client_connect_cb, remote_fd, EV_WRITE);
|
||||
ev_io_start(tip_main_loop, &cli->io);
|
||||
|
||||
syslog(LOG_INFO, "connecting to %s to fetch file %s\n", addr, filename);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue