From owner-cvs-src-old@FreeBSD.ORG Tue Nov 3 12:52:52 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 231E21065672 for ; Tue, 3 Nov 2009 12:52:52 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 113608FC0C for ; Tue, 3 Nov 2009 12:52:52 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nA3CqpWn038938 for ; Tue, 3 Nov 2009 12:52:51 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nA3CqpmQ038937 for cvs-src-old@freebsd.org; Tue, 3 Nov 2009 12:52:51 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200911031252.nA3CqpmQ038937@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Tue, 3 Nov 2009 12:52:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern uipc_syscalls.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 12:52:52 -0000 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