From owner-freebsd-hackers Sun Aug 3 22:11:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA13848 for hackers-outgoing; Sun, 3 Aug 1997 22:11:51 -0700 (PDT) Received: from whizzo.TransSys.COM (whizzo.TransSys.COM [144.202.42.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA13841 for ; Sun, 3 Aug 1997 22:11:49 -0700 (PDT) Received: from localhost.transsys.com (localhost.transsys.com [127.0.0.1]) by whizzo.TransSys.COM (8.8.6/8.7.3) with SMTP id BAA23487; Mon, 4 Aug 1997 01:11:37 -0400 (EDT) Message-Id: <199708040511.BAA23487@whizzo.TransSys.COM> X-Mailer: exmh version 2.0zeta 7/24/97 To: Nate Williams , Charles Henrich cc: freebsd-hackers@FreeBSD.ORG From: "Louis A. Mamakos" Subject: Re: tty-level buffer overflows References: <19970803025730.57257@crh.cl.msu.edu> <199708030852.SAA13473@genesis.atrad.adelaide.edu.au> <19970803112147.21483@crh.cl.msu.edu> <199708040423.WAA26367@rocky.mt.sri.com> In-reply-to: Your message of "Sun, 03 Aug 1997 22:23:17 MDT." <199708040423.WAA26367@rocky.mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 04 Aug 1997 01:11:36 -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > Your application is busted; data is arriving faster than your app is reading > > > it, and the kernel has run out of patience and started throwing the data > > > away. > > > > Im afraid not, the application is a software Upload, with a singly byte ack > > every 2k, if the serial port cant handle that, theres a problem. I would > > presume that if the buffer is full, a write() should block. > > You've got a 16 byte FIFO, and you're wondering why it's overflowing > when your application is trying to get 2K at a time? You've *GOT* to be > kidding, right? No, I think that Charles is surprised that he's *sending* 2K blocks, and getting error messages described on the single byte ACK characters which is being *received*. Could it be that there is cross-talk, and some of the data being transmitted is being "heard" as input? louie