gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] gpsd as gpsd client, error "Unrecognized request"


From: Eric S. Raymond
Subject: Re: [gpsd-users] gpsd as gpsd client, error "Unrecognized request"
Date: Thu, 7 Sep 2017 07:29:06 -0400
User-agent: Mutt/1.5.24 (2015-08-30)

Florian Petry <address@hidden>:
> Sorry, answered to the wrong message before.
> 
> Is it still planned to merge this fix? We are running into the
> "Unrecognized request" problem frequently when connecting one gpsd to
> another with gpsd://...
> 
> Regards
> 
> Am 28.06.2017 um 21:18 schrieb Larry Boyd:
> >This is a better fix for the server side.
> >The difference is that this one will give up after 10 seconds rather than
> >getting stuck forever.
> >
> >Although this is unlikely to make anything worse (unlike previous version),
> >I'm not sure that it is optimal, and frankly, I don't understand the use of
> >the protocol well enough (yet) to decide how it should be adjusted, if at
> >all.
> >For instance, I am using the number of bytes read as the mechanism for
> >determining if the entire request has been read, and I'm using 1 byte as
> >the threshold. What happens if the request is 100 bytes long and we read 17
> >bytes? How can we tell that we have read to the end of the entire request?
> >Does a request always terminate with '\r' or '\r\n'? I'm not sure if it
> >does or not, and frankly, it may depend on the implementation of the
> >client. The two lines immediately following the bulk of this patch suggest
> >that requests may not always end in '\n'.
> >
> >If someone can say for certain that a request will *always* have a '\r' in
> >the last or second-to-last byte, then ideally, we could read until we find
> >that byte, and then continue.

I don't see an actuall patch.  If it's simple enough, I might merge it
before we ship.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>

Please consider contributing to my Patreon page at https://www.patreon.com/esr
so I can keep the invisible wheels of the Internet turning. Give generously -
the civilization you save might be your own.




reply via email to

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