View Single Post
Old 08-16-2014, 11:08 AM   #1
didierm
Enthusiast
didierm will become famous soon enoughdidierm will become famous soon enoughdidierm will become famous soon enoughdidierm will become famous soon enoughdidierm will become famous soon enoughdidierm will become famous soon enough
 
Posts: 33
Karma: 576
Join Date: Aug 2014
Device: Boyue T61, 2x Boyue T62D
Multiple identical server instances detected

In my home network, I am running multiple calibre-server instances on one headless server host (due to the huge discrepancy in storage requirements, I like to keep e.g. ebook & comics libraries separated).

Currently, all instances/collections are announced as "Books in calibre".
This makes them indistinguishable in e.g. Calibre Companion.

Mr. Haley has ventilated the intention (https://bugs.launchpad.net/calibre/+...641/comments/3) to include the port number in CC's Content Server list.

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 )

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
Attached Thumbnails
Click image for larger version

Name:	imgCC.jpg
Views:	480
Size:	50.5 KB
ID:	126913  
didierm is offline   Reply With Quote