Skip site navigation (1) Skip section navigation (2)

Re: SO_SNDBUF size is small on win32?

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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.

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(at)sraoss(dot)co(dot)jp

In response to

Responses

pgsql-hackers by date

Next:From: Csaba NagyDate: 2006-06-27 16:50:33
Subject: Re: Table clustering idea
Previous:From: Jim C. NasbyDate: 2006-06-27 16:39:45
Subject: Re: Table clustering idea

pgsql-patches by date

Next:From: Tom LaneDate: 2006-06-27 17:01:10
Subject: Re: SO_SNDBUF size is small on win32?
Previous:From: Yoshiyuki AsabaDate: 2006-06-27 16:33:48
Subject: Re: SO_SNDBUF size is small on win32?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group