From: Mark D. <ma...@ki...> - 2007-04-03 08:12:41
|
On Sat, 31 Mar 2007 16:29:29 -0400, Evan Schoenberg wrote > gaim_core_init() has: > > /* > * Call this early on to try to auto-detect our IP address and > * hopefully save some time later. > */ > gaim_network_get_my_ip(-1); > > is there a good reason for this non-lazy determination of IP > address? The value is *only* used in file transfers (OSCAR, Jabber, > IRC, QQ) with the exception of connecting via SIP and Novell. It > seems like by the general use case it should be lazy. gaim_network_get_my_ip() sometimes uses upnp or pmp to determine the external IP address of your machine. I think the intent here was for Gaim to perform those upnp calls in the background so that they don't need to be done while the user is waiting to send a file to someone. But if the calls to the upnp and pmp code are blocking then this is a silly thing to do and it would be fine to change it to be lazy. Of course, it would be best if upnp and pmp are non-blocking and Gaim could talk to your router in the background shortly after startup while your accounts are merrily logging in. -Mark |