crazyzhangcrazy / distcc

Automatically exported from code.google.com/p/distcc
GNU General Public License v2.0
0 stars 0 forks source link

zeroconf hosts have a hardcoded slots value of 4? #145

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed that the value for the number of jobs on a zeroconf host is hardcoded 
to 4 in hosts.c

if ((ret = dcc_zeroconf_add_hosts(ret_list, ret_nhosts, 4, ret_prev) != 0))

This has been causing all kinds of issues for me when testing it - for some 
reason, with 1 zeroconf host, and localhost/4... i get a `distcc -j` value of 
20! If this is still being developed/maintained; would it be possible to send 
the number of available job slots when using zeroconf/avahi to detect them?

Unless I'm missing something obvious... which is possible :)

Original issue reported on code.google.com by stevenho...@gmail.com on 9 Sep 2014 at 9:09

GoogleCodeExporter commented 9 years ago
Ah, I see this was reported in 2008 & 2010 :( Guessing it won't be fixed any 
time soon then

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491175
https://bugs.launchpad.net/ubuntu/+source/distcc/+bug/592933

Original comment by stevenho...@gmail.com on 11 Sep 2014 at 7:08

GoogleCodeExporter commented 9 years ago
The change that you are proposing sounds like a good idea... please feel free 
to send a patch.

Original comment by fer...@google.com on 12 Sep 2014 at 10:27