[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New gpsd version with TCP reconnect
From: |
Nick Taylor |
Subject: |
Re: New gpsd version with TCP reconnect |
Date: |
Fri, 11 Nov 2022 13:04:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 |
Yo Gary
I just pushed a change for gpsd to explicitly close the tcp:// connection
after 60 seconds. See if that helps you.
Don't want to break out the Champagne prematurely but it's looking very
positive :D
Here's Client commands showing sequence of commands and timing:
root@TSB-318:/home/am43# wc gpsd-20221111-block-client.log
1078 8415 78214 gpsd-20221111-block-client.log
root@TSB-318:/home/am43# iptables -A INPUT -p tcp --source-port 2948 -j
DROP
root@TSB-318:/home/am43# date
Fri Nov 11 12:40:46 UTC 2022
root@TSB-318:/home/am43# wc gpsd-20221111-block-client.log
1316 10340 95718 gpsd-20221111-block-client.log
root@TSB-318:/home/am43# iptables -D INPUT -p tcp --source-port 2948 -j
DROP
root@TSB-318:/home/am43# date
Fri Nov 11 12:43:07 UTC 2022
root@TSB-318:/home/am43# wc gpsd-20221111-block-client.log
1831 12356 127069 gpsd-20221111-block-client.log
root@TSB-318:/home/am43#
And server shows:
root@TSB-1650:~# ps aux|grep socat
root 8402 0.1 0.1 4312 1432 pts/0 S 12:40 0:00 socat
EXEC:gpspipe -Br TCP-LISTEN:2948,reuseaddr,fork
root 8629 0.0 0.1 2080 1212 pts/0 S+ 12:41 0:00 grep socat
root 32032 0.0 0.1 4312 1876 pts/0 S 11:54 0:00 socat
EXEC:gpspipe -Br TCP-LISTEN:2948,reuseaddr,fork
root@TSB-1650:~# ps aux|grep socat
root 8757 0.0 0.1 2080 1148 pts/0 S+ 12:42 0:00 grep socat
root 32032 0.0 0.1 4312 1876 pts/0 S 11:54 0:00 socat
EXEC:gpspipe -Br TCP-LISTEN:2948,reuseaddr,fork
root@TSB-1650:~# date
Fri Nov 11 12:42:23 UTC 2022
root@TSB-1650:~#
Somehow your new the tcp close still seems to take effect even with 2948
blocked... This means that there's no point in me waiting 20 mins for
socat to timeout as it's closed within 60s
All good so far, will start to rollout to real world testing next week
Keeping everything crossed - have a great weekend
All the very best
Nick
- Re: New gpsd version with TCP reconnect, (continued)
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/02
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/02
- Re: New gpsd version with TCP reconnect, Nick Taylor, 2022/11/03
- Re: New gpsd version with TCP reconnect, Nick Taylor, 2022/11/07
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/07
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/09
- Re: New gpsd version with TCP reconnect, Nick Taylor, 2022/11/10
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/10
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/10
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/10
- Re: New gpsd version with TCP reconnect,
Nick Taylor <=
- Re: New gpsd version with TCP reconnect, Nick Taylor, 2022/11/11
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/11
- Re: New gpsd version with TCP reconnect, Nick Taylor, 2022/11/16
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/16
- Re: New gpsd version with TCP reconnect, Nick Taylor, 2022/11/11
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/11
- Re: New gpsd version with TCP reconnect, Nick Taylor, 2022/11/03
- Re: New gpsd version with TCP reconnect, Gary E. Miller, 2022/11/03