Re: Latch-ifying the syslogger process

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Latch-ifying the syslogger process
Дата
Msg-id 17889.1336870132@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Latch-ifying the syslogger process  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> While testing this I discovered a pre-existing bug in the Unix
> implementation of WaitLatchOrSocket: EOF on the socket is reported as
> POLLHUP not POLLIN (at least on my Linux box), which results in
> WaitLatchOrSocket going into an infinite loop, because poll() returns
> immediately but the result bitmask never becomes nonzero.

BTW, I just came across this in Microsoft's documentation of
WSAEventSelect:
Note that Windows Sockets will record only an FD_CLOSE network eventto indicate closure of a virtual circuit. It will
notrecord anFD_READ network event to indicate this condition.
 

which seems to me to indicate that the Windows version of
WaitLatchOrSocket has a related bug.  We want socket EOF to result in
WL_SOCKET_READABLE being returned, no?  Otherwise the caller may never
realize that it has an EOF condition to deal with.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Euler Taveira
Дата:
Сообщение: Re: Draft release notes complete
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Credit in the release notes WAS: Draft release notes complete