# HG changeset patch # User Eric Warmenhoven # Date 1008882119 0 # Node ID a090e98dbbb6e467a32bfa946a9509b67292ea7a # Parent 3a9bca5fedcf5174578bd5dc99fb80e60f3c7fea [gaim-migrate @ 2918] i've been in a friendly mood the last week committer: Tailor Script diff -r 3a9bca5fedcf -r a090e98dbbb6 src/proxy.c --- a/src/proxy.c Thu Dec 20 20:02:07 2001 +0000 +++ b/src/proxy.c Thu Dec 20 21:01:59 2001 +0000 @@ -158,6 +158,7 @@ debug_printf("connecting to %s:%d with no proxy\n", host, port); if (!(hp = gethostbyname(host))) { + debug_printf("gethostbyname failed\n"); g_free(phb); return -1; } @@ -168,6 +169,7 @@ sin.sin_port = htons(port); if ((fd = socket(hp->h_addrtype, SOCK_STREAM, 0)) < 0) { + debug_printf("unable to create socket\n"); g_free(phb); return -1; } @@ -189,6 +191,7 @@ debug_printf("Connect didn't block\n"); len = sizeof(error); if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { + debug_printf("getsockopt failed\n"); close(fd); g_free(phb); return -1;