9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] more serial questions
@ 2014-03-25  0:12 erik quanstrom
  2014-03-25  7:45 ` Gorka Guardiola
  0 siblings, 1 reply; 3+ messages in thread
From: erik quanstrom @ 2014-03-25  0:12 UTC (permalink / raw)
  To: 9fans

i'm just asking questions, because i don't have the experience the author
clearly has.

i'm looking at this comment

		/*
		 * if we encounter a long run of continuous read
		 * errors, do something drastic so that our caller
		 * doesn't just spin its wheels forever.
		 */

long run is defined to be 10000 for the lifetime of all serial ports.  i'm thinking
of making this 5 in a row per call, and checking for a few more cant continue
type messages.  was there a particular device that might spit out hundreds of
consecutive read timeouts (that's the only error this works for) before returning
something?  could the same thing happen on write?

- erik



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] more serial questions
  2014-03-25  0:12 [9fans] more serial questions erik quanstrom
@ 2014-03-25  7:45 ` Gorka Guardiola
  2014-03-25 13:46   ` erik quanstrom
  0 siblings, 1 reply; 3+ messages in thread
From: Gorka Guardiola @ 2014-03-25  7:45 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I didn't add that, your guess is as good as mine.

G.

> On Mar 25, 2014, at 1:12 AM, erik quanstrom <quanstro@quanstro.net> wrote:
> 
> i'm just asking questions, because i don't have the experience the author
> clearly has.
> 
> i'm looking at this comment
> 
>        /*
>         * if we encounter a long run of continuous read
>         * errors, do something drastic so that our caller
>         * doesn't just spin its wheels forever.
>         */
> 
> long run is defined to be 10000 for the lifetime of all serial ports.  i'm thinking
> of making this 5 in a row per call, and checking for a few more cant continue
> type messages.  was there a particular device that might spit out hundreds of
> consecutive read timeouts (that's the only error this works for) before returning
> something?  could the same thing happen on write?
> 
> - erik
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] more serial questions
  2014-03-25  7:45 ` Gorka Guardiola
@ 2014-03-25 13:46   ` erik quanstrom
  0 siblings, 0 replies; 3+ messages in thread
From: erik quanstrom @ 2014-03-25 13:46 UTC (permalink / raw)
  To: 9fans

> I didn't add that, your guess is as good as mine.

ok.

> That it was implemented after and I was short on time. They should.

cool.  i wanted to rule out some sort of odd h/w interaction.

- erik



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-25 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-25  0:12 [9fans] more serial questions erik quanstrom
2014-03-25  7:45 ` Gorka Guardiola
2014-03-25 13:46   ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).