1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-08 03:03:32 +00:00
Konstantin Belousov 1c89fc757a If socket buffer space appears to be lower then sum of count of already
prepared bytes and next portion of transfer, inner loop of kern_sendfile()
aborts, not preparing next mbuf for socket buffer, and not modifying
any outer loop invariants. The thread loops in the outer loop forever.

Instead of breaking from inner loop, prepare only bytes that fit into
the socket buffer space.

In collaboration with:	pho
Reviewed by:	bz
PR:	kern/138999
MFC after:	2 weeks
2009-11-03 12:52:35 +00:00
..
2009-10-31 13:24:14 +00:00
2009-11-03 11:19:05 +00:00
2009-11-03 12:03:13 +00:00
2009-10-24 09:55:11 +00:00
2009-10-24 18:49:17 +00:00