From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Stancek Date: Tue, 12 May 2020 15:44:48 -0400 (EDT) Subject: [LTP] [PATCH 2/2] pty04: Retry reads when short In-Reply-To: <20200512154935.GA24478@dell5510> References: <20200512142824.13063-1-rpalethorpe@suse.com> <20200512142824.13063-2-rpalethorpe@suse.com> <20200512154935.GA24478@dell5510> Message-ID: <2136651671.12186381.1589312688262.JavaMail.zimbra@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it ----- Original Message ----- > Hi Richard, > > > Even though reads are blocking and packets are flipped into the netdevice > > buffer whole, it seems read may return before a full packet is read into > > user > > land. Retrying read should prevent timeouts and read failures on some > > machines. > > > Signed-off-by: Richard Palethorpe > > Reported-by: Jan Stancek > > Cc: Petr Vorel > > Reviewed-by: Petr Vorel > > Thanks for taking care of this. ACK, I'll update github issue when this runs for a while with recent upstream kernels. > It's still possible to reproduce timeout just with higher -i (-i10), > but it's an improvement. > > Kind regards, > Petr > >