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: pgsql-hackers(at)postgresql(dot)org
Subject: Re: SO_SNDBUF size is small on win32?
Date: 2006-06-27 15:44:30
Message-ID: 20060628.004430.78730345.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 11:30:56 -0400

> Yoshiyuki Asaba <y-asaba(at)sraoss(dot)co(dot)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 call or the WSASend call to specify a buffer size
    at least 1 byte smaller than the SO_SNDBUF value.

--
Yoshiyuki Asaba
y-asaba(at)sraoss(dot)co(dot)jp

In response to

pgsql-hackers by date

Next:From: Andrew DunstanDate: 2006-06-27 15:45:53
Subject: Re: SO_SNDBUF size is small on win32?
Previous:From: Martijn van OosterhoutDate: 2006-06-27 15:31:20
Subject: Re: SO_SNDBUF size is small on win32?

pgsql-patches by date

Next:From: Andrew DunstanDate: 2006-06-27 15:45:53
Subject: Re: SO_SNDBUF size is small on win32?
Previous:From: Martijn van OosterhoutDate: 2006-06-27 15:31:20
Subject: Re: SO_SNDBUF size is small on win32?

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