pidgin: 31940d02: Add debug output when proxy configuratio...

datallah at pidgin.im datallah at pidgin.im
Tue Oct 21 12:16:01 EDT 2008


-----------------------------------------------------------------
Revision: 31940d02243239ac5ceb41f8893e366df3a6794d
Ancestor: 3712dc87ef9c46da0dc5283a8d5a571d9a90d340
Author: datallah at pidgin.im
Date: 2008-10-21T16:01:13
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/31940d02243239ac5ceb41f8893e366df3a6794d

Modified files:
        libpurple/proxy.c

ChangeLog: 

Add debug output when proxy configuration issues are seen.  This will help to
debug some weird connection problems.
References #7278

-------------- next part --------------
============================================================
--- libpurple/proxy.c	d7fbf71c225304eda9dbfa8ef7857da17ec2549f
+++ libpurple/proxy.c	c319023ab74877039993e91ad873edb534716d2a
@@ -2152,6 +2152,8 @@ purple_proxy_connect(void *handle, Purpl
 			break;
 
 		default:
+			purple_debug_error("proxy", "Invalid Proxy type (%d) specified.\n",
+							   purple_proxy_info_get_type(connect_data->gpi));
 			purple_proxy_connect_data_destroy(connect_data);
 			return NULL;
 	}
@@ -2160,6 +2162,7 @@ purple_proxy_connect(void *handle, Purpl
 			connectport, connection_host_resolved, connect_data);
 	if (connect_data->query_data == NULL)
 	{
+		purple_debug_error("proxy", "dns query failed unexpectedly.\n");
 		purple_proxy_connect_data_destroy(connect_data);
 		return NULL;
 	}


More information about the Commits mailing list