Open GoogleCodeExporter opened 9 years ago
This message is coming from distccd, not from distcc.
To avoid it, you would need to arrange for DISTCC_TCP_CORK=0 to be set in the
environment on the remote machines before starting the distccd server
processes, e.g. in /etc/init.d/distcc, and then you would need to restart the
distccd server processes, e.g. by sudo /etc/init.d/distcc restart.
Original comment by fer...@google.com
on 4 Mar 2011 at 4:43
Well that's helpful in working around the problem, and I'll definitely do that
(thanks!). But if we're connecting to the distccd via a supported option it
probably shouldn't be spitting warning messages back at us. :)
Original comment by gfar...@gmail.com
on 4 Mar 2011 at 4:59
So far I didn't manage to disable the warning in SSH mode. (Even tried
diverting the binary itself, and replaced it with a shell script wrapper that
exports DISTCC_TCP_CORK=0).
Please just remove that annoying warning, it is absolutely useless.
Original comment by stefan.b...@gmail.com
on 21 Sep 2013 at 9:22
Hi Stefan,
Figured I'd pass this along... I ran into the same issue you did building out a
distcc farm at my work. To squash the issue (on a Linux box, at least) -
requires root access:
1) mv /usr/bin/distccd /usr/bin/distccd-bin
2) Put a new file in place at /usr/bin/distccd, with contents like this:
#!/bin/bash
export DISTCC_TCP_CORK=0
exec /usr/bin/distccd-bin $@
3) chmod 755 /usr/bin/distccd
At that point, this little bash script will intercept calls to distccd, export
the Env Var properly, then invoke the distccd-bin and preserve all the original
command line arguments.
I've rolled this change out to a dozen distcc worker nodes here at my work, and
have seen no further evidence of the TCP cork warnings in any of my builds.
It's not trivial to roll out, but it will eliminate the noise in your build
logs until such time as a fix is available.
Original comment by kbpe...@gmail.com
on 23 Oct 2013 at 8:09
The function
int tcp_cork_sock(int POSSIBLY_UNUSED(fd), int POSSIBLY_UNUSED(corked))
checks the value of DISTCC_TCP_CORK and does nothing (return) if it is not
enabled.
if (!dcc_getenv_bool("DISTCC_TCP_CORK", 1))
return 0;
Otherwise it tries to set cork to the provided "corcked" value. WHen that
fails we see the error
I have definitely set DISTCC_TCP_CORK=0, yet I still see these messages all the
time.
Original comment by Smith.Ja...@gmail.com
on 29 May 2015 at 3:20
Original issue reported on code.google.com by
gfar...@gmail.com
on 4 Mar 2011 at 12:22