if (is_uds) /* unix domain socket */
WCC->serv_sock = uds_connectsock(serv_sock_name);
else /* tcp socket */
- WCC->serv_sock = tcp_connectsock(ctdlhost, ctdlport);
+ WCC->serv_sock = tcp_connectsock(ctdlhost, atoi(ctdlport));
if (WCC->serv_sock < 0) {
do_logout();
WCC->connected = 1;
StrBuf_ServGetln(Buf); /* get the server greeting */
short_status = GetServerStatus(Buf, &Status);
- lprintf(9, "\033[32mGREETING: %s\033[0m\n", ChrPtr(Buf));
FreeStrBuf(&Buf);
/* Server isn't ready for us? */
return 1;
}
+ /* 2010jun03: every now and then the connection to Citadel dies before this point. why? */
+
/*
* From what host is our user connecting? Go with
* the host at the other end of the HTTP socket,