[gaim-migrate @ 2918]

Thu, 20 Dec 2001 21:01:59 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Thu, 20 Dec 2001 21:01:59 +0000
changeset 2905
6ec1b2d491aa
parent 2904
43a12c48c7c3
child 2906
6d1a38606840

[gaim-migrate @ 2918]
i've been in a friendly mood the last week

src/proxy.c file | annotate | diff | comparison | revisions
--- 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;

mercurial