Date: Tue, 3 Nov 2009 12:52:35 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern uipc_syscalls.c Message-ID: <200911031252.nA3CqpmQ038937@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-11-03 12:52:35 UTC
FreeBSD src repository
Modified files:
sys/kern uipc_syscalls.c
Log:
SVN rev 198853 on 2009-11-03 12:52:35Z by kib
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
Revision Changes Path
1.288 +1 -9 src/sys/kern/uipc_syscalls.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911031252.nA3CqpmQ038937>
