Re: SO_SNDBUF size is small on win32? - Mailing list pgsql-hackers

From Yoshiyuki Asaba
Subject Re: SO_SNDBUF size is small on win32?
Date
Msg-id 20060628.004430.78730345.y-asaba@sraoss.co.jp
Whole thread Raw
In response to Re: SO_SNDBUF size is small on win32?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 11:30:56 -0400

> Yoshiyuki Asaba <y-asaba@sraoss.co.jp> writes:
> > send() may take as long as 200ms. So, I think we should increase
> > SO_SNDBUF to more than 8192. I attache the patch.
> 
> Why would that help?  We won't be sending more than 8K at a time.

MSDN is,
 Method2: Make the Socket Send Buffer Size Larger Than the Program          Send Buffer Size   ....   Modify the send
callor the WSASend call to specify a buffer size   at least 1 byte smaller than the SO_SNDBUF value.
 

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


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: SO_SNDBUF size is small on win32?
Next
From: Andrew Dunstan
Date:
Subject: Re: SO_SNDBUF size is small on win32?