Bug 493129 - netcat uses inefficient socket read sizes
Summary: netcat uses inefficient socket read sizes
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nc
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Zeleny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-31 18:08 UTC by Aron Griffis
Modified: 2009-04-10 13:16 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-10 13:16:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
double read sizes to accomodate full-size packets (761 bytes, patch)
2009-03-31 18:08 UTC, Aron Griffis
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.