Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2006 12:13:27 -0700
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        "Bill Moran" <wmoran@collaborativefusion.com>, <questions@freebsd.org>
Subject:   Re: Reducing the timeout on a TCP connection
Message-ID:  <000401c6b59e$92d942d0$3c01a8c0@coolf89ea26645>
References:  <20060801150226.0c911297.wmoran@collaborativefusion.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is why the snmp protocol uses UDP, Bill.

You need to use something other than TCP for
monitoring.

Ted

----- Original Message ----- 
From: "Bill Moran" <wmoran@collaborativefusion.com>
To: <questions@freebsd.org>
Sent: Tuesday, August 01, 2006 12:02 PM
Subject: Reducing the timeout on a TCP connection


>
> I'm writing some monitoring scripts, and I'm having some trouble because
> the TCP seems to wait 90 seconds before giving up on initiating a
> connection.
>
> (The script is in PHP, testing a PostgreSQL database.  Neither PHP nor
> libpq (which PHP's PostgreSQL support is based on) seem to have any
> settings that can be used to adjust this timeout).
>
> If my memory of Stevens is correct, this is something that's set at the
> OS level.  It doesn't seem as if it's a configurable value, however.
> I guess I'm looking for confirmation on that point first.  If that's
> the case, then I'll have to adjust my approach based on that knowledge.
>
> If it can be adjusted, can it be adjusted on a per-connection basis?  I
> don't want to mess with timeouts on other sockets, _just_ this one
> monitoring script.
>
> And of course, the final question: how would I adjust this setting if
> it's possible?  If it's a sysctl, I'm missing it ...
>
> Suggestions?
>
> -- 
> Bill Moran
> Collaborative Fusion Inc.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000401c6b59e$92d942d0$3c01a8c0>