From: | Yoshiyuki Asaba <y-asaba(at)sraoss(dot)co(dot)jp> |
---|---|
To: | tgl(at)sss(dot)pgh(dot)pa(dot)us |
Cc: | andrew(at)dunslane(dot)net, kleptog(at)svana(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SO_SNDBUF size is small on win32? |
Date: | 2006-06-27 16:43:37 |
Message-ID: | 20060628.014337.41652237.y-asaba@sraoss.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: [HACKERS] SO_SNDBUF size is small on win32?
Date: Tue, 27 Jun 2006 12:28:35 -0400
> Andrew Dunstan <andrew(at)dunslane(dot)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.
pgwin32_send() calls pgwin32_waitforsinglesocket() before
WSASend(). And pgwin32_waitforsinglesocket() calls WSAEventSelect().
Regards,
--
Yoshiyuki Asaba
y-asaba(at)sraoss(dot)co(dot)jp
From | Date | Subject | |
---|---|---|---|
Next Message | Csaba Nagy | 2006-06-27 16:50:33 | Re: Table clustering idea |
Previous Message | Jim C. Nasby | 2006-06-27 16:39:45 | Re: Table clustering idea |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-06-27 17:01:10 | Re: SO_SNDBUF size is small on win32? |
Previous Message | Yoshiyuki Asaba | 2006-06-27 16:33:48 | Re: SO_SNDBUF size is small on win32? |