[nut-Bugs][311428] upslog fails with interval > 60 seconds
nut-bugs at alioth.debian.org
nut-bugs at alioth.debian.org
Sun Feb 1 19:36:37 UTC 2009
Bugs item #311428, was opened at 2009-02-01 20:36
Status: Open
Priority: 3
Submitted By: Arjen de Korte (adkorte-guest)
Assigned to: Arjen de Korte (adkorte-guest)
Summary: upslog fails with interval > 60 seconds
Category: Client
Group: None
Resolution: None
Initial Comment:
When the logging interval is higher than 60 seconds, upslog reports lots of errors. This is due to the server automatically disconnecting clients after not hearing from them for more than 60 seconds.
This should be solved by either
1) Checking for a connection (and reconnecting if needed) right before running the query to the ups and disconnecting afterwards when the interval is higher than about 30 seconds.
2) Sending 'keep alive' messages so that the connection doesn't timeout.
3) Allow for longer auto disconnect intervals in the server.
I have a slight preference for the first solution, since a disconnect/connect is probably cheaper (in terms of CPU/network usage) than (possibly) repeatedly processing 'keep alive' messages, that have no use other than keeping the connection active.
----------------------------------------------------------------------
You can respond by visiting:
http://alioth.debian.org/tracker/?func=detail&atid=411542&aid=311428&group_id=30602
More information about the NUT-tracker
mailing list