Re: SO_SNDBUF size is small on win32?

Поиск
Список
Период
Сортировка
От Yoshiyuki Asaba
Тема Re: SO_SNDBUF size is small on win32?
Дата
Msg-id 20060628.014337.41652237.y-asaba@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: SO_SNDBUF size is small on win32?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: SO_SNDBUF size is small on win32?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
From: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: [HACKERS] SO_SNDBUF size is small on win32? 
Date: Tue, 27 Jun 2006 12:28:35 -0400

> Andrew Dunstan <andrew@dunslane.net> writes:
> > Martijn van Oosterhout wrote:
> >> On Wed, Jun 28, 2006 at 12:23:13AM +0900, Yoshiyuki Asaba wrote:
> >>> http://support.microsoft.com/kb/823764/EN-US/
> 
> > No, it says it occurs if this condition is met: "A single *send* call or 
> > *WSASend* call fills the whole underlying socket send buffer."
> 
> It also says that the condition only occurs if the program uses
> non-blocking sockets ... which the backend does not.  So this page
> offers no support for the proposed patch.

WSAEventSelect() sets a socket to nonblocking mode.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/html/wce50lrfWSAEventSelect.asp

pgwin32_send() calls pgwin32_waitforsinglesocket() before
WSASend(). And pgwin32_waitforsinglesocket() calls WSAEventSelect().

Regards,
--
Yoshiyuki Asaba
y-asaba@sraoss.co.jp


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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Table clustering idea
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: Table clustering idea