This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug network/18665] In send_dg, the recvfrom function is NOT always using the buffer size of a newly created buffer.


https://sourceware.org/bugzilla/show_bug.cgi?id=18665

--- Comment #5 from Robert <rhollida at ciena dot com> ---
I assume this is happening because this code was never sufficiently tested with
large packets. 

I had done some statistics which show typical packet lengths received for DNS
queries. 

Received packet lengths:
122, 128, 47, 80, 59, 73, 226, 50, 161 

It looks like the code that allocates more buffer space starting on line
1271, is not used much, so probably does not get a lot of testing, because most
of the time the default buffer of 2048 bytes is less than the largest packet I
received of 161 bytes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]