Re: [Openslp-devel] [PATCHv2] semi-automatically refresh listening interfaces
Brought to you by:
jcalcote
From: John C. <joh...@gm...> - 2012-11-28 19:49:46
|
Hi Gavin, Your dynamic ifc reinit patch has been incorporated into the repository. Thanks for your efforts. Regards, John > -----Original Message----- > From: Gavin Lambert [mailto:ga...@co...] > Sent: Thursday, October 25, 2012 9:32 PM > To: ope...@li... > Subject: [Openslp-devel] [PATCHv2] semi-automatically refresh listening > interfaces > > I've attached a variation of the previous patch (still against the 2.0 beta > 2 tarball) which handles the reinit slightly differently from the original. > > This one will start listening on any newly discovered (or configured) > interfaces, without closing or stopping any previously opened incoming > sockets. > > The advantage over the previous patch is that it will cause less disruption to > ongoing communications, particularly if only a secondary interface is > changing. The disadvantage is that if the service is left running for a long time > on a network that keeps assigning it different addresses (presumably via a > DHCP server with a bad memory) then it will gradually eat up more and more > resources, and probably eventually fail. (I'm not sure which tradeoff is better > overall.) > > A suggested improvement (which again I'm not quite familiar enough with > the code to do at this point) would be to track which sockets are associated > with a particular interface and close them if their interface is not still present > during the reinit. > > Note that for code simplicity it's currently assuming that if the TCP listen > socket exists then all the other related sockets are still ok too. |