Maxim Dounin
December 12, 2011 05:10AM
Hello!

On Sun, Dec 11, 2011 at 06:58:57PM -0500, double wrote:

> Is there a chance to use non-blocking-io with nginx?
> AIO is quite broken on Linux, but "O_NONBLOCK" is not.

Does O_NONBLOCK works on Linux for regular files? If yes, where
is sematics defined?

POSIX says behaviour of O_NONBLOCK on regular files is
unspecified, and it's indeed impossible to use O_NONBLOCK on
regular files with POSIX interfaces: there is no way to schedule
read operation and there is no way to find out if I/O possible
(select()/poll() always return regular files as ready for
reading/writing as per POSIX).

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

aio vs non-blocking-io

double December 11, 2011 03:47PM

Re: aio vs non-blocking-io

Piotr Sikora December 11, 2011 07:04PM

Re: aio vs non-blocking-io

Radu Gheorghiu December 12, 2011 05:24AM

Re: aio vs non-blocking-io

Maxim Dounin December 12, 2011 05:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready