lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <462D8ACE.5040700@amhost.net>
Date:	Tue, 24 Apr 2007 07:42:54 +0300
From:	Alex Vorona <voron@...ost.net>
To:	linux-kernel@...r.kernel.org
Subject: Re: sendfile to nonblocking socket

David Miller wrote:
> From: voron <voron@...ost.net>
> Date: Tue, 24 Apr 2007 00:13:27 +0300
>
>   
>> As I see, nonblocking mode is enabled - sendfile sends less than asked.  
>>     
>
> The socket is marked as non-blocking, but the disk I/O is not.
>
> It's blocking on the disk I/O not the socket part of the operation.
>
>
>   
How can I told kernel to not block on disk I/O? I tried non-blocking on
disk i/o fd, but it  seems to be ignored. Strace with both nonblocing
disk fd and socket fd in attach
#non-blocking on socket fd enabled
04:34:07 ioctl(9, FIONBIO, [1])         = 0
#non-blocking on disk fd enabled
04:34:11 ioctl(12, FIONBIO, [1])        = 0
#normal sendfile
04:34:07 sendfile(9, 12, [444282], 2147477638) = 812682
#32 seconds sendfile
04:34:11 sendfile(9, 12, [261474962], 2147476846) = 2144612230

Thank you,
Alex


View attachment "strace.log" of type "text/plain" (5680 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ