<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic socket buffer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-buffer/m-p/2569204#M594313</link>
    <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I have a server and client running on the HPUX 11.0 &lt;BR /&gt;&lt;BR /&gt;Case 1 &lt;BR /&gt;------ &lt;BR /&gt;SO_RCVBUF of server = 32768. &lt;BR /&gt;SO_SNDBUF of client = 32768. &lt;BR /&gt;The client is able to write 115000 bytes approx. without the server reading a single byte. &lt;BR /&gt;&lt;BR /&gt;Case 2 &lt;BR /&gt;------ &lt;BR /&gt;SO_RCVBUF of server = 1024. &lt;BR /&gt;SO_SNDBUF of client = 32768. &lt;BR /&gt;The client is able to write 35000 bytes approx. without the server reading a single byte. &lt;BR /&gt;&lt;BR /&gt;Case 3 &lt;BR /&gt;------ &lt;BR /&gt;SO_RCVBUF of server = 1024. &lt;BR /&gt;SO_SNDBUF of client = 1024. &lt;BR /&gt;The client is able to write 3200 bytes approx. without the server reading a single byte. &lt;BR /&gt;&lt;BR /&gt;The obvious question is why am i able to write more data than the size of the buffer? &lt;BR /&gt;Is SO_RCVBUF,SO_SNDBUF the true size of the buffer? &lt;BR /&gt;If no then how do we find the true size? &lt;BR /&gt;&lt;BR /&gt;Kapil &lt;BR /&gt;</description>
    <pubDate>Thu, 23 Aug 2001 13:09:48 GMT</pubDate>
    <dc:creator>Kapil_2</dc:creator>
    <dc:date>2001-08-23T13:09:48Z</dc:date>
    <item>
      <title>socket buffer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-buffer/m-p/2569204#M594313</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I have a server and client running on the HPUX 11.0 &lt;BR /&gt;&lt;BR /&gt;Case 1 &lt;BR /&gt;------ &lt;BR /&gt;SO_RCVBUF of server = 32768. &lt;BR /&gt;SO_SNDBUF of client = 32768. &lt;BR /&gt;The client is able to write 115000 bytes approx. without the server reading a single byte. &lt;BR /&gt;&lt;BR /&gt;Case 2 &lt;BR /&gt;------ &lt;BR /&gt;SO_RCVBUF of server = 1024. &lt;BR /&gt;SO_SNDBUF of client = 32768. &lt;BR /&gt;The client is able to write 35000 bytes approx. without the server reading a single byte. &lt;BR /&gt;&lt;BR /&gt;Case 3 &lt;BR /&gt;------ &lt;BR /&gt;SO_RCVBUF of server = 1024. &lt;BR /&gt;SO_SNDBUF of client = 1024. &lt;BR /&gt;The client is able to write 3200 bytes approx. without the server reading a single byte. &lt;BR /&gt;&lt;BR /&gt;The obvious question is why am i able to write more data than the size of the buffer? &lt;BR /&gt;Is SO_RCVBUF,SO_SNDBUF the true size of the buffer? &lt;BR /&gt;If no then how do we find the true size? &lt;BR /&gt;&lt;BR /&gt;Kapil &lt;BR /&gt;</description>
      <pubDate>Thu, 23 Aug 2001 13:09:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-buffer/m-p/2569204#M594313</guid>
      <dc:creator>Kapil_2</dc:creator>
      <dc:date>2001-08-23T13:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: socket buffer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/socket-buffer/m-p/2569205#M594314</link>
      <description>a partial explanation is that there is a bit of "double buffering" in the HP-UX 11 stack. however, TCP window advertisements are honored&lt;BR /&gt;&lt;BR /&gt;also, even without the double-buffering, the amount that can be sent before the client would block completely is the sum of the client's SO_SNDBUF and the server's SO_RCVBUF. the client sends serverSO_RCVBUF worth of data, which is received and ACKed by the server's tcp. the server's tcp then advertises a zero window. &lt;BR /&gt;&lt;BR /&gt;since the data was ACKed, the client TCP can remove it from his SO_SNDBUF. the client app is now free to put fresh data into the SO_SNDBUF, awaiting a window update from the server, which will be sent once the server app starts reading data from his socket.</description>
      <pubDate>Thu, 23 Aug 2001 16:48:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/socket-buffer/m-p/2569205#M594314</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2001-08-23T16:48:17Z</dc:date>
    </item>
  </channel>
</rss>

