[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New gpsd version with TCP reconnect

From: Gary E. Miller
Subject: Re: New gpsd version with TCP reconnect
Date: Thu, 10 Nov 2022 16:54:43 -0800

Yo Nick!

On Thu, 10 Nov 2022 14:21:10 +0000
Nick Taylor <> wrote:

> Sadly doesn't seem to have made much difference to me...
> New log attached

gpsd:INFO: Command line: gpsd -nND 10 tcp:// 

-D4 or -D5 is enough, we don't need the nitty gritty cahar by char
decoding.  Message level is good enough.  We get messages, or not.

I see you have a client connected, you never mentioned that:

gpsd:SPIN: client ::1 (0) connect on fd 8
gpsd:CLIENT: => client(0) len 113: 

You only waited 119 seeconds for disconnect to be detected:

gpsd:DATA: gpsd_multipoll(7) = 0
gpsd:PROG: gpsd_multipoll(7) DEVICE_UNCHANGED for 119

Then you stopped the log there.  When and how, did you reenable the
connection between the client and server?

The TCP connection will hang around for 2 hours.  I blocked the conenction
this way, on the client host, hof 819 seconds:

# iptables -A INPUT -p tcp --source-port 2948  -j DROP

When I reentabled the connection, this way:

# iptables -D INPUT -p tcp --source-port 2948  -j DROP

The tcp:// picked right up and worked:

So I'm having trouble duplicating your issue.  Are you looking for gpsd
to  force a disconnect at like 60 seconds or 120 seconds?

Why does my TCP session stay up 800+ seconds, but yours does not?

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpEguEfKjYBP.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]