netutils use of socket descriptor
Thomas Guyot-Sionnest
dermoth at aei.ca
Mon Jun 15 21:44:53 CEST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 15/06/09 02:27 PM, Thomas Guyot-Sionnest wrote:
>
> A better way of doing this is to send a connect for the next ip in list
> every n miliseconds (where n is a small fraction of the timeout, you
> could for example take half of the timeout and divide it by the number
> of IP), use the first connected socket and clean up the rest.
>
>
Just for clarification I'm not necessarily saying that we should do it
this way, but that if we really want to try all IPs that's the way
(IMHO) it should be done.
The attached patch removes the useless loop. There's no real-world
testing besides the compilation/tests.
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFKNqS16dZ+Kt5BchYRAvnQAJ9bB5WMc6X9VRsj6/Pb7t54T1k+UgCeIbc9
wfnCEeJR+pt7N5cEyA8N+ls=
=xpIe
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: netutils.patch
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090615/a109d4aa/attachment.ksh>
-------------- next part --------------
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list