diff options
author | Gary E. Miller <gem@rellim.com> | 2016-04-07 15:29:29 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-04-07 15:29:29 -0700 |
commit | 87c4d7c2611e122668f49c5e9c782993912756dc (patch) | |
tree | ba0de542e43fb9d781501ea3615570fa62e8148d /gps | |
parent | 79cabdcfb3857ff201c581037586ac610639bc80 (diff) | |
download | gpsd-87c4d7c2611e122668f49c5e9c782993912756dc.tar.gz |
RTCM3 JSON can be over 4.4k long, So go big in regres driver.
Thanks to Fred Wright for locating the trouble spot.
Diffstat (limited to 'gps')
-rw-r--r-- | gps/client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gps/client.py b/gps/client.py index d540e211..8f8ed919 100644 --- a/gps/client.py +++ b/gps/client.py @@ -96,7 +96,8 @@ class gpscommon: sys.stderr.write("poll: reading from daemon...\n") eol = self.linebuffer.find('\n') if eol == -1: - frag = polystr(self.sock.recv(4096)) + # RTCM3 JSON can be over 4.4k long, so go big + frag = polystr(self.sock.recv(8192)) self.linebuffer += frag if self.verbose > 1: sys.stderr.write("poll: read complete.\n") |