It would be nice if this were configurable, so that users can decide how many retries they want to have until distcc falls back on the localhost.
One advantage to this approach is that the existing behavior can be made the default value, remote-attempts=1, but users who do not want any local compilation can set a very high remote attempts value, to prevent falling back on the localhost, unless there is some massive network failure. Michael -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean Delvare Sent: Wednesday, June 01, 2005 1:11 PM To: distcc@lists.samba.org Cc: Avuton Olrich Subject: Re: [distcc] Do not allow localhost compile Hi all, [Martin Pool] > Although that patch should probably be merged, and might help, I don't > think it has any effect on when cc1plus runs on localhost, which was the > original question. That will basically be either when delegation > fails, or when there is a compiler option that can't be distributed. The former case could probably be improved by trying to redistribute to a different host rather than falling back to localhost (which we have no real reason to do, that I can see). I think this was discussed already on this list, but I don't remember anyone proposing a patch to do this. I have been giving it a try, patch is attached (against the latest Arch version of distcc). Seems to work just fine for me, I would appreciate if others could try it, especially people which are actually interested in this feature. Comments would be very welcome too, of course. Thanks, -- Jean Delvare __ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc