Re: [Nagios-devel] [[email protected]: [Pkg-nagios-devel] Bug#358178:

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] [[email protected]: [Pkg-nagios-devel] Bug#358178:

Post by Guest »

Ethan Galstad wrote:
> Looks good - I'll commit this to CVS shortly. A 2.1 release should
> be out soon once people get a change to test the latest patches I've
> committed.
>

#define MAX_PLUGINOUTPUT_LENGTH (332 + (16 * (64 / __WORDSIZE)))

Since pointers and long's are always words (in the asm sense), it will
always use an output buffer of maximum size, while keeping it below the
POSIX-required minimum atomic write(2) size.

Or better yet, use a tcp-socket listening on either 127.0.0.1 (if you
intend to port it to Windows some day) or a udp unix socket (if you
don't. udp is a lot simpler since you don't have the disturbing problems
of multiplexing connectivity) for feeding results back in. That way you
can set the receive-buffers to 256K and never worry about it again. It
would also scale a lot better. In fact, I think I'll start hacking on
that later today.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked