WCC->serv_sock = tcp_connectsock(ctdlhost, ctdlport);
if (WCC->serv_sock < 0) {
- do_logout();
FreeStrBuf(&WCC->ReadBuf);
return 1;
}
* connection now.
*/
if (!WCC->connected) {
- if (GetConnected ())
+ if (GetConnected()) {
+ hprintf("HTTP/1.1 503 Service Unavailable\r\n");
+ hprintf("Content-Type: text/plain\r\n");
+ begin_burst();
+ wc_printf("%s", _("This program was unable to connect or stay connected to the Citadel server. "
+ "Please report this problem to your system administrator."));
+ end_burst();
goto SKIP_ALL_THIS_CRAP;
+ }
}