Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Check stale write events in ngx_epoll_module

agentzh
November 07, 2011 07:42PM
On Tue, Nov 8, 2011 at 1:51 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> Patch looks fine for me.  Could you please provide some details
> about user-visible effects observed if the problem occurs?
>

We've noticed this when using the ngx_postgres module to connect to a
PostgreSQL database via libpq over a no-so-good network.

The libpq library's documentation requires a write event to occur
before calling PQconnectPoll when PGRES_POLLING_WRITING was last
returned. So when a stale write event triggers the PQconnectPoll call,
libpq will simply complain about it and return an error. This is a
limitation in libpq to do non-blocking I/O and we have to work around
on the Nginx side.

Regards,
-agentzh

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

[PATCH] Check stale write events in ngx_epoll_module Attachments

agentzh 1973 November 07, 2011 06:50AM

Re: [PATCH] Check stale write events in ngx_epoll_module

Maxim Dounin 678 November 07, 2011 12:54PM

Re: [PATCH] Check stale write events in ngx_epoll_module

agentzh 709 November 07, 2011 07:42PM

Re: [PATCH] Check stale write events in ngx_epoll_module

Maxim Dounin 1394 November 22, 2011 11:54AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 232
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