Ticket #6572 (new defect)
Replace key with hash to reduce avahi TXT size
|Reported by:||morgs||Owned by:||Collabora|
|Keywords:||9.1.0:?||Cc:||Collabora, mstone, jg, cscott, marcopg|
|Deployments affected:||Blocked By:|
Morgan Collett wrote:
Ivan Krstić wrote:
On Feb 26, 2008, at 2:49 AM, Sjoerd Simons wrote:
Does sugar make any assumptions about the size of the key? IOW can we instead of removing the key completely, use a smaller key?
As I've told daf, smcv et al many months ago in Boston, there's no point in advertising the whole key. Advertising a digest is enough as long as nodes support an on-demand operation that returns their whole key.
As long as Sugar gets a unique value as the key, nothing will break (for very short term changes for testing...) so you could just replace the key in the TXT record with its hash.
This patch for Presence Service replaces the public key with its sha1 hash.
I tested in jhbuild on salut and sharing Chat does work, and avahi-discover shows the shorter (40 byte) value for key.