Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue May 26, 2015 · 2 comments
Open

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

GoogleCodeExporter opened this issue May 26, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant