changeset 2905:a090e98dbbb6

[gaim-migrate @ 2918] i've been in a friendly mood the last week committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 20 Dec 2001 21:01:59 +0000
parents 3a9bca5fedcf
children 538c58b43eff
files src/proxy.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;