OpenSolaris

Printable Version Enter a New Search
Bug ID 4868863
Synopsis recv() with MSG_PEEK does not return the length of all data
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:streams
Keywords rtiq_reviewed
Responsible Engineer Jonathan Anderson
Reported Against 5.6 , s10_32
Duplicate Of
Introduced In solaris_2.0
Commit to Fix snv_70
Fixed In snv_70
Release Fixed solaris_nevada(snv_70) , solaris_10u5(s10u5_02) (Bug ID:2153333)
Related Bugs 4034017 , 6471647 , 6666472 , 2159395 , 6718169
Submit Date 23-May-2003
Last Update Date 8-August-2007
Description
recv() with MSG_PEEK only returns the number of bytes in the first message chain (
aggregated on b_cont) on a stream. Messages accumulated via b_next are not counted.
Work Around
It should be possible to use ioctl(2) with a FIONREAD request which returns
the total number of bytes at the stream head (and also includes what is on
the synchronous barrier).
Comments
N/A