[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091105101211.GA431@rabbit.intern.cm-ag>
Date: Thu, 5 Nov 2009 11:12:11 +0100
From: Max Kellermann <mk@...all.com>
To: linux-kernel@...r.kernel.org
Cc: jens.axboe@...cle.com, max@...mpel.org
Subject: Re: [PATCH] tcp: set SPLICE_F_NONBLOCK after first buffer has been
spliced
Hi,
here is a small test program for the bug. The last splice() blocks.
Interestingly, if you close the client socket before splice(), it does
not block, and the number of bytes transferred is smaller.
In my patch submission, I forgot the Signed-off-by line - please use
the attached patch file instead.
Max
View attachment "splice-block.c" of type "text/x-csrc" (3777 bytes)
View attachment "0001-tcp-set-SPLICE_F_NONBLOCK-after-first-buffer-has-be.patch" of type "text/x-diff" (1925 bytes)
Powered by blists - more mailing lists