[nut-Bugs][311428] upslog fails with interval > 60 seconds

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Tue Jul 7 20:28:29 UTC 2009


Bugs item #311428, was changed at 2009-02-01 20:36 by Arjen de Korte
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=311428&group_id=30602

>Status: Closed
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: Fixed


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.

----------------------------------------------------------------------

>Comment By: Arjen de Korte (adkorte-guest)
Date: 2009-07-07 22:28

Message:
This was fixed in r1764.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=311428&group_id=30602



More information about the NUT-tracker mailing list