|
From: SourceForge.net <no...@so...> - 2005-03-07 19:15:12
|
Patches item #680803, was opened at 2003-02-05 06:31 Message generated for change (Settings changed) made by lschiere You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300235&aid=680803&group_id=235 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michal (micu) >Assigned to: Sean Egan (seanegan) Summary: Gadu-Gadu not working when first server port is blocked Initial Comment: When connecting to a Gadu-Gadu server across a firewall that blocks connections to GG default port (slight above 8000), switching to alternate (443) is not handled properly. I suppose gg_login() function behaves correctly, but this one is not used right now - gaim uses proxy_connect() instead. The quick-and-dirty workaround that I use is to skip first phase of GG connection and connect immediately to 443 (which is not blocked). Below is mini-patch implementing such behaviour (against 0.59.8 but as I far as I can see nothing has changed in GG handling since then). Regards MiCu ---------------------------------------------------------------------- Comment By: Michal (micu) Date: 2003-02-05 08:25 Message: Logged In: YES user_id=704973 --- src/protocols/gg/libgg.c.ORIG Sat Dec 21 21:08:19 2002 +++ src/protocols/gg/libgg.c Wed Feb 5 12:23:54 2003 @@ -1011,7 +1011,7 @@ a.s_addr = inet_addr(host); sess->server_ip = a.s_addr; - if ((sess->fd = gg_connect(&a, port, sess->async)) == -1) { + /* if ((sess->fd = gg_connect(&a, port, sess->async)) == -1) { */ gg_debug(GG_DEBUG_MISC, "-- connection failed, trying https connection\n"); if ((sess->fd = gg_connect(&a, GG_HTTPS_PORT, sess->async)) == -1) { gg_debug(GG_DEBUG_MISC, "-- connection failed, errno = %d (%s)\n", errno, strerror(errno)); @@ -1021,7 +1021,7 @@ sess->state = GG_STATE_IDLE; break; } - } + /* } */ sess->state = GG_STATE_CONNECTING_GG; sess->check = GG_CHECK_WRITE; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300235&aid=680803&group_id=235 |