pgsql: In pgstat.c, use a timeout in WaitLatchOrSocket only on Windows.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In pgstat.c, use a timeout in WaitLatchOrSocket only on Windows.
Date: 2012-05-15 03:51:48
Message-ID: E1SU8nc-0005pv-TK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

In pgstat.c, use a timeout in WaitLatchOrSocket only on Windows.

We have no need for a timeout here really, but some broken products from
Redmond seem to lose FD_READ events occasionally, and waking up and
retrying the recv() is the only known way to work around that. Perhaps
somebody will be motivated to figure out a better answer here; but not I.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9b63e9869ffaa4d6d3e8bf45086a765d8f310f1c

Modified Files
--------------
src/backend/postmaster/pgstat.c | 23 ++++++++++++++++++++---
1 files changed, 20 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2012-05-15 16:35:42 pgsql: Fix bug in to_tsquery().
Previous Message Tom Lane 2012-05-15 03:09:16 pgsql: Revert "Add some temporary instrumentation to pgstat.c."