Quote:
Originally Posted by didierm
1. Feature request :
I would very much like the possibility to assign aliases/descriptions in CC to host/port combinations, as a port number is hardly indicative of the library contents (especially for those family members who do not maintain the shared Calibre installation  )
|
I am not willing to add this. It would cost development and maintenance time for a rare use case. And as you note, the port number does disambiguate it. Your family would need to remember the ports. Perhaps you could help this process by using very different port numbers.
Quote:
2. Bug report :
In order to cope for my immediate needs, I am discriminating between current instances by copying the calibre folder for each instance, and binary patching the contents of the "Books in calibre" string, located in /calibre/library/server/base.py, class Bonjour(), def mdns_services().
However, it seems :
- at a first "Connect to Content Server" attempt (after clearing the app's data in Android's Apps setting), not all instances are detected, requiring a second run, and/or
- some instances are randomly detected more than once, as indicated by the attached screenshot (CC 3.4.2 with calibre-server 1.205, running 3 instances FictionNL/FictionEN/Comics).
This is reproducible on all my Android clients (4.2.2, 4.4.2, 4.4.4).
According to tcpdump, instances are detected exclusively by means of multicast mDNS (224.0.0.251, port 5353).
I am available for further debugging and/or running CC test builds.
Cheers,
Didier
|
There are two problems here.
The first is the duplications. As far as I can tell, this happens only when the content server instances are restarted while CC is running after having attempted to connect. Regardless, it is wrong and I will fix it.
The second is the missing instances. This is caused by a combination of a problem with the mDNS protocol where the description is used to disambiguate the services and threading issues in CC affecting when responses are seen. Kovid and I have decided to fix the former by including the port in the description sent by the content server, which is as safe a fix as we can think of. I have fixed the latter in CC.
The CC fixes will be in the next CC release. I don't know when I will make that release, but it will probably be within weeks. The calibre change will be in the next calibre release.