[Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
Hi all. I have written a patch for Avahi, that solves the bugs [UPSTREAM] http://bugs.sugarlabs.org/ticket/3748 [DOWNSTREAM] http://dev.laptop.org.au/issues/1332 ### For brevity, I am specifying the use-case :: a) XO-1 connects to telepathy-salut. b) XO-2 connects to telepathy-salut. Both XO-1,and XO-2, are able to see each other in the neighborhood-view. c) XO-1 disconnects. XO-2 is now no more seen in XO-1's neighborhhod-view, BUT XO-1 IS CONTINUED TO BE SEEN IN XO-2'S NEIGHBORHOOD-VIEW. The expected behaviour is that XO-1 should also disappear from XO-2's neighborhood-view after some time. ### The upstream bug id is :: https://bugs.freedesktop.org/process_bug.cgi ### The patch is located at :: http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch For brevity, I am pasting the patch description Please refer https://bugs.freedesktop.org/show_bug.cgi?id=51501 History :: === As pointed out by Simon McVittie in https://bugs.freedesktop.org/show_bug.cgi?id=51501#c4, https://tools.ietf.org/html/draft-cheshire-dnsext-multicastdns-15#section-10 suggests that the Time-To-Live (TT) of the mDNS record is likely to be 120 seconds. However, for all purposes, in whatever testing I came across Avahi, the TTL in effect was 75 minutes , which seemed a bit too late a notification of buddy-going-disconnected. Fix :: == Decrease the Time-To-Live (TTL). Solution :: === Obviously, the easiest solution is to set the appropriate values in #define AVAHI_DEFAULT_TTL_HOST_NAME #define AVAHI_DEFAULT_TTL However, this has the following caveats :: (i) It needs a re-compilation/re-packaging of avahi rpms, for every change in the values. This is a major deployment headache. (ii) Also, there is no ideal TTL values. The lesses the TTL values, more frequent multicast DNS packets will be exchanged between a pair of peers, thus leading to more traffic. However, too large a TTL value, would mean that the peer gets too late a notification of the buddy going disconnected. Thus, ideal values can only be found out by testing in real-field. This requires easy configuration of the TTL values, without needing to re-compile the rpms. Solution-Implementation :: == The cutomized TTL values will be read during avahi-daemon startup. 1. AVAHI_DEFAULT_TTL_HOST_NAME will be set to the value, contained in the file /etc/avahi/avahi-default-ttl-host-name.conf. Default value is the same as before, i.e. 120 (seconds). 2. AVAHI_DEFAULT_TTL will be set to the value, contained in the file /etc/avahi/avahi-default-ttl.conf. Default value is the same as before, i.e. 4500 (seconds), which is equal to 75 minutes. How to customize :: === a) sudo service avahi-daemon stop b) Change the values in the corresponding conf files. c) sudo service avahi-daemon start AUTHOR: Ajay Garg a...@activitycentral.com Thanks to :: Will Thompsonwill.thomp...@collabora.co.uk Simon McVittie simon.mcvit...@collabora.co.uk Xavier Claessens xclae...@gmail.com ### The pre-compiled RPMS (patched), both for F14 and F17, are available at :: http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f14/RPMS/ http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f17/RPMS/ ### I have done the preliminary testings, and things seem to work as expected. In particular, now the XO-2 disapplears from XO-1's neighborhood view, after the number of seconds specified in the file /etc/avahi/avahi-default-ttl.conf. ### Kindly test and review the patch, as this solves a pretty important issue :) Thanks and Regards, Ajay ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
On Mon, Jul 9, 2012 at 8:33 AM, Ajay Garg a...@activitycentral.com wrote: I have written a patch for Avahi, that solves the bugs [UPSTREAM] http://bugs.sugarlabs.org/ticket/3748 [DOWNSTREAM] http://dev.laptop.org.au/issues/1332 Thanks for working on this. Neither link has a patch. Where is the patch, as a text file? Reading the description, first you talk about a patch to avahi, but then you say it's configurable via files in /etc, so I'd expect a patch to OOB. If it is tweakable from telepathy or Sugar, then maybe a patch to Sugar, where it sets up the properties of the telepathy connection...? cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
Hi Martin. The patch link was embedded later into the email :: http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch Also, updating the tickets with the patch.. (sorry about not doing that before..). Also, the details are like this :: a) The patch is applied to Avahi, and the patched (avahi) rpms upgraded. The (required 6) pre-compiled rpms are present at :: http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f14/RPMS/ http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/platforms/f17/RPMS/ b) This patch IS responsible for adding two files to /etc/avahi :: * /etc/avahi/avahi-default-ttl.conf * /etc/avahi/avahi-default-ttl-host-name.conf c) As per the usecase, the XO-2 disapplears from XO-1's neighborhood view, after the number of seconds specified in the file /etc/avahi/avahi-default-ttl.conf. d) I was not able to any observable difference between the two #defines - AVAH-DEFAULT-TTL, and AVAHI-DEFAULT-TTL-HOST-NAME. So, for all purposes, they may be configured the same value (via the two conf files). e) Actually specifying the values in the two conf files, would have to be done at the OOB stage (as correctly identified by Martin). A value of about 20 seconds (for each) would be good. Thanks and Regards, Ajay On Mon, Jul 9, 2012 at 7:56 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Mon, Jul 9, 2012 at 8:33 AM, Ajay Garg a...@activitycentral.com wrote: I have written a patch for Avahi, that solves the bugs [UPSTREAM] http://bugs.sugarlabs.org/ticket/3748 [DOWNSTREAM] http://dev.laptop.org.au/issues/1332 Thanks for working on this. Neither link has a patch. Where is the patch, as a text file? Reading the description, first you talk about a patch to avahi, but then you say it's configurable via files in /etc, so I'd expect a patch to OOB. If it is tweakable from telepathy or Sugar, then maybe a patch to Sugar, where it sets up the properties of the telepathy connection...? cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
On Mon, Jul 9, 2012 at 10:49 AM, Ajay Garg a...@activitycentral.com wrote: The patch link was embedded later into the email :: http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch Ah, thanks! Have you shown this patch to Avahi hackers? Avahi-daemon has /etc/avahi/avahi-daemon.conf, which is read by load_config_file() in main.c . Perhaps that is better than -#define AVAHI_DEFAULT_TTL_HOST_NAME (120) +#define AVAHI_DEFAULT_TTL_HOST_NAME get_avahi_default_ttl_host_name() ? cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
On Mon, Jul 9, 2012 at 9:38 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Mon, Jul 9, 2012 at 10:49 AM, Ajay Garg a...@activitycentral.com wrote: The patch link was embedded later into the email :: http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch Ah, thanks! Have you shown this patch to Avahi hackers? Just sent them a notification :) Avahi-daemon has /etc/avahi/avahi-daemon.conf, which is read by load_config_file() in main.c . Perhaps that is better than -#define AVAHI_DEFAULT_TTL_HOST_NAME (120) +#define AVAHI_DEFAULT_TTL_HOST_NAME get_avahi_default_ttl_host_name() Bang on That was the first thing I had tried. The #defines are needed in all the avahi-modules (avahi-core, avahi-daemon, etc.), so it needs to have itself pre-processed from the common avahi-common module. Thankfully, the two #defines are present in avahi-common/defs.h. This avahi-common is the basic common module, which is linked to other modules (avahi-core, avahi-daemon, etc) So far, so good. But.. the problem starts now.. If the two additional values are read from the static int load_config_file(DaemonConfig *c) method in avahi-daemon/main.c (via /etc/avahi/avahi-daemon.conf), that does not work out. Reason is that, because avahi-daemon requires avahi-core to complete its linking process, whereas avahi-core would need avahi-daemon to complete its linking process (since the two values will be read from the context of avahi-daemon). That puts us in a catch-22 situation. So, actually, the right place to load the complete config is in avahi-common module; but as of now, even in F17, the static int load_config_file(DaemonConfig *c) method resides in the avahi-daemon module :\ Anyways, I loaded the two required variables (without needing the methods of avahi-daemon module) from the context of avahi-common. ? cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff Thanks and Regards, Ajay ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
The notification link (to avahi) :: http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01891.html Regards, Ajay On Mon, Jul 9, 2012 at 10:00 PM, Ajay Garg a...@activitycentral.com wrote: On Mon, Jul 9, 2012 at 9:38 PM, Martin Langhoff martin.langh...@gmail.com wrote: On Mon, Jul 9, 2012 at 10:49 AM, Ajay Garg a...@activitycentral.com wrote: The patch link was embedded later into the email :: http://people.sugarlabs.org/ajay/root/freedesktop_bug_51501/common-patch-for-f14-and-f17/customize-avahi-default-ttl-values.patch Ah, thanks! Have you shown this patch to Avahi hackers? Just sent them a notification :) Avahi-daemon has /etc/avahi/avahi-daemon.conf, which is read by load_config_file() in main.c . Perhaps that is better than -#define AVAHI_DEFAULT_TTL_HOST_NAME (120) +#define AVAHI_DEFAULT_TTL_HOST_NAME get_avahi_default_ttl_host_name() Bang on That was the first thing I had tried. The #defines are needed in all the avahi-modules (avahi-core, avahi-daemon, etc.), so it needs to have itself pre-processed from the common avahi-common module. Thankfully, the two #defines are present in avahi-common/defs.h. This avahi-common is the basic common module, which is linked to other modules (avahi-core, avahi-daemon, etc) So far, so good. But.. the problem starts now.. If the two additional values are read from the static int load_config_file(DaemonConfig *c) method in avahi-daemon/main.c (via /etc/avahi/avahi-daemon.conf), that does not work out. Reason is that, because avahi-daemon requires avahi-core to complete its linking process, whereas avahi-core would need avahi-daemon to complete its linking process (since the two values will be read from the context of avahi-daemon). That puts us in a catch-22 situation. So, actually, the right place to load the complete config is in avahi-common module; but as of now, even in F17, the static int load_config_file(DaemonConfig *c) method resides in the avahi-daemon module :\ Anyways, I loaded the two required variables (without needing the methods of avahi-daemon module) from the context of avahi-common. ? cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff Thanks and Regards, Ajay ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
On Mon, Jul 9, 2012 at 12:30 PM, Ajay Garg a...@activitycentral.com wrote: Just sent them a notification :) Ok, that's a start. Reason is that, because avahi-daemon requires avahi-core to complete its linking process, whereas avahi-core would need avahi-daemon to complete its linking process (since the two values will be read from the context of avahi-daemon). That puts us in a catch-22 situation. Valid concern. I'd say do ask about that to the Avahi developers. My practical concern is that it may be tricky for your patch, as it is today, to land upstream. The sooner we hear from avahi devs, the better.. m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Are weekly dev mettings occuring?
Thanks, I'll be sure to be present tomorrow. Eduardo 2012/7/8, Gonzalo Odiard gonz...@laptop.org: Yes! Tuesday as every week. Gonzalo On Sun, Jul 8, 2012 at 4:42 PM, Eduardo H. Silva hoboprim...@gmail.comwrote: Hi everybody, Are weekly development meetings still happening? I'd like to be part of one (as a spectator). Eduardo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
Thanks Martin. Passed on the info to Avahi guys at http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html Thanks and Regards, Ajay http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html On Mon, Jul 9, 2012 at 10:16 PM, Martin Langhoff martin.langh...@gmail.comwrote: On Mon, Jul 9, 2012 at 12:30 PM, Ajay Garg a...@activitycentral.com wrote: Just sent them a notification :) Ok, that's a start. Reason is that, because avahi-daemon requires avahi-core to complete its linking process, whereas avahi-core would need avahi-daemon to complete its linking process (since the two values will be read from the context of avahi-daemon). That puts us in a catch-22 situation. Valid concern. I'd say do ask about that to the Avahi developers. My practical concern is that it may be tricky for your patch, as it is today, to land upstream. The sooner we hear from avahi devs, the better.. m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Are weekly Design mettings occuring?[was: Are weekly dev meetings occuring?]
One more question, what about Design meetings? Those seem to be lagging a lot, and are very much needed in case the transition of the sugar shell to gtk3 opens up some avenues for improvements. Eduardo 2012/7/9, Eduardo H. Silva hoboprim...@gmail.com: Thanks, I'll be sure to be present tomorrow. Eduardo 2012/7/8, Gonzalo Odiard gonz...@laptop.org: Yes! Tuesday as every week. Gonzalo On Sun, Jul 8, 2012 at 4:42 PM, Eduardo H. Silva hoboprim...@gmail.comwrote: Hi everybody, Are weekly development meetings still happening? I'd like to be part of one (as a spectator). Eduardo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Are weekly dev mettings occuring?
Hm, I can't attend the from the start of the meeting after all. Hopefully when there is a design meeting, which I'm more able to participate in, it will be a bit later (like 16:00 UTC?). Eduardo 2012/7/9, Eduardo H. Silva hoboprim...@gmail.com: Thanks, I'll be sure to be present tomorrow. Eduardo 2012/7/8, Gonzalo Odiard gonz...@laptop.org: Yes! Tuesday as every week. Gonzalo On Sun, Jul 8, 2012 at 4:42 PM, Eduardo H. Silva hoboprim...@gmail.comwrote: Hi everybody, Are weekly development meetings still happening? I'd like to be part of one (as a spectator). Eduardo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Are weekly Design mettings occuring?[was: Are weekly dev meetings occuring?]
Hi Eduardo, On 9 Jul 2012, at 19:28, Eduardo H. Silva hoboprim...@gmail.com wrote: One more question, what about Design meetings? Those seem to be lagging a lot, and are very much needed in case the transition of the sugar shell to gtk3 opens up some avenues for improvements. No, we have been holding off until 12.1 is finished before starting a new 12.2 design cycle. Look out for a meeting announcement later this week. Regards, --Gary Eduardo 2012/7/9, Eduardo H. Silva hoboprim...@gmail.com: Thanks, I'll be sure to be present tomorrow. Eduardo 2012/7/8, Gonzalo Odiard gonz...@laptop.org: Yes! Tuesday as every week. Gonzalo On Sun, Jul 8, 2012 at 4:42 PM, Eduardo H. Silva hoboprim...@gmail.comwrote: Hi everybody, Are weekly development meetings still happening? I'd like to be part of one (as a spectator). Eduardo ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Problems with HTTPS
We are experiencing some trouble with HTTPS as the certificate revocation server from our SSL provider (crl.startssl.com) is having problems. If you find that browsing a SL server through HTTPS is slow or goes into timeout, either switch to HTTP or disable the certification revocation check in your browser. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] compiled to .XO
On Fri, Jun 29, 2012 at 8:48 PM, Mikus Grinbergs mi...@bga.com wrote: Am attaching an copy of an email I sent earlier to someone with a question similar to yours. IMHO that email provides a concise how-to guide to fashioning a bare-bones .xo package. Great stuff. Someone, be brave and aggressively update http://wiki.sugarlabs.org/go/Running_Linux_Applications_Under_Sugar -- =S Page ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Patch written for Presence not updated, when client disconencts from telepathy-salut
Heard back from Avahi at :: http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01893.html Nothing very useful I guess; anyways I gave a reply with my viewpoint :: http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01895.html Regards, Ajay On Mon, Jul 9, 2012 at 10:44 PM, Ajay Garg a...@activitycentral.com wrote: Thanks Martin. Passed on the info to Avahi guys at http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html Thanks and Regards, Ajay http://www.mail-archive.com/avahi@lists.freedesktop.org/msg01892.html On Mon, Jul 9, 2012 at 10:16 PM, Martin Langhoff martin.langh...@gmail.com wrote: On Mon, Jul 9, 2012 at 12:30 PM, Ajay Garg a...@activitycentral.com wrote: Just sent them a notification :) Ok, that's a start. Reason is that, because avahi-daemon requires avahi-core to complete its linking process, whereas avahi-core would need avahi-daemon to complete its linking process (since the two values will be read from the context of avahi-daemon). That puts us in a catch-22 situation. Valid concern. I'd say do ask about that to the Avahi developers. My practical concern is that it may be tricky for your patch, as it is today, to land upstream. The sooner we hear from avahi devs, the better.. m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect - OLPC - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel