Bug 493129

Summary: netcat uses inefficient socket read sizes
Product: [Fedora] Fedora Reporter: Aron Griffis <aron.griffis>
Component: ncAssignee: Jan Zeleny <jzeleny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: jzeleny, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-10 13:16:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
double read sizes to accomodate full-size packets none

Description Aron Griffis 2009-03-31 18:08:05 UTC
Created attachment 337367 [details]
double read sizes to accomodate full-size packets

Description of problem:
netcat uses read sizes of 1024 for standard packets and 8192 for jumbos.  This doesn't make sense because standard packets are ~1518 bytes and jumbos typically max out ~9018, so full-size packets will result in twice the necessary read syscalls.

Version-Release number of selected component (if applicable):
nc-1.84-18.fc11

Additional info:
This bug is also present upstream at 
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/netcat.c?rev=1.92;content-type=text%2Fplain

Comment 1 Jan Zeleny 2009-04-10 13:16:05 UTC
Patch has been included in rawhide package, closing this bug.