Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Check stale write events in ngx_epoll_module

Maxim Dounin
November 22, 2011 11:54AM
Hello!

On Tue, Nov 08, 2011 at 08:40:29AM +0800, agentzh wrote:

> 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.

Committed, thanks.

Maxim Dounin

_______________________________________________
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 1563 November 07, 2011 06:50AM

Re: [PATCH] Check stale write events in ngx_epoll_module

Maxim Dounin 541 November 07, 2011 12:54PM

Re: [PATCH] Check stale write events in ngx_epoll_module

agentzh 568 November 07, 2011 07:42PM

Re: [PATCH] Check stale write events in ngx_epoll_module

Maxim Dounin 992 November 22, 2011 11:54AM



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

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready