<?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 Re: send() function sleeping for tcp socket in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654742#M677112</link>
    <description>sorry, should be no accumulated data in socket buffer</description>
    <pubDate>Wed, 30 Jun 2010 10:03:46 GMT</pubDate>
    <dc:creator>joeyu1201</dc:creator>
    <dc:date>2010-06-30T10:03:46Z</dc:date>
    <item>
      <title>send() function sleeping for tcp socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654735#M677105</link>
      <description>I have a tcp server application to generate reqeust and send to client. However, after startup a while, the application is blocked by send() function.&lt;BR /&gt;&lt;BR /&gt;$ truss -p 10591&lt;BR /&gt;( Attached to process 10591 ("J_SMPP_Handler 127.0.0.1") [64-bit] )&lt;BR /&gt;send(5, 0x9ffffffffff97d60, 59, 0)                                                                                [sleeping]&lt;BR /&gt;&lt;BR /&gt;Why does send() being blocked?</description>
      <pubDate>Wed, 30 Jun 2010 01:13:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654735#M677105</guid>
      <dc:creator>joeyu1201</dc:creator>
      <dc:date>2010-06-30T01:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: send() function sleeping for tcp socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654736#M677106</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I have a tcp server application [...]&lt;BR /&gt;&lt;BR /&gt;Running on what, exactly?  (_Who_ has&lt;BR /&gt;"truss"?)&lt;BR /&gt;&lt;BR /&gt;Getting an accurate diagnosis of invisible&lt;BR /&gt;code running on a mystery system may be more&lt;BR /&gt;difficult than you seem to think.</description>
      <pubDate>Wed, 30 Jun 2010 01:50:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654736#M677106</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-30T01:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: send() function sleeping for tcp socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654737#M677107</link>
      <description>The application is running on IA64 11.31</description>
      <pubDate>Wed, 30 Jun 2010 02:19:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654737#M677107</guid>
      <dc:creator>joeyu1201</dc:creator>
      <dc:date>2010-06-30T02:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: send() function sleeping for tcp socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654738#M677108</link>
      <description>I call send with following parameter:&lt;BR /&gt;rc = send(fd, (char*)buffer, byte_to_send, 0);</description>
      <pubDate>Wed, 30 Jun 2010 02:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654738#M677108</guid>
      <dc:creator>joeyu1201</dc:creator>
      <dc:date>2010-06-30T02:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: send() function sleeping for tcp socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654739#M677109</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;What does the return value of 'send()' contain?  The manpages for 'send(2)' describe the various expectations including potential 'errno' indicators.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 30 Jun 2010 05:17:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654739#M677109</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-30T05:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: send() function sleeping for tcp socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654740#M677110</link>
      <description>Maybe the client isn't reading from it's socket buffer for some reason. &lt;BR /&gt;&lt;BR /&gt;As the client's receive buffer fills up, the client OS will automatically send TCP options to inform your server about the shrinking available space in the client's TCP receive window. Once the receive buffer has been completely filled, the TCP window size will also be reduced to zero.&lt;BR /&gt;&lt;BR /&gt;At that point, the server knows it cannot send anything more to the client until the client processes the data already sent. As no more data can be sent, any further data will remain in the server socket's transmit buffer until the client sends another message telling it can receive more. Once the server socket's transmit buffer is 100% full, the send() function will start blocking.&lt;BR /&gt;&lt;BR /&gt;From the send(2) man page:&lt;BR /&gt;----&lt;BR /&gt;If no buffer space is available to hold the data to be transmitted, send() blocks unless nonblocking mode is enabled.&lt;BR /&gt;----&lt;BR /&gt;... and if you had enabled nonblocking mode, the send() function would have failed with errno set to either EAGAIN or EWOULDBLOCK.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 30 Jun 2010 05:20:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654740#M677110</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-06-30T05:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: send() function sleeping for tcp socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654741#M677111</link>
      <description>Can I know the remaining available TCP buffer of client/server side?&lt;BR /&gt;I used netstat to view the socket buffer, but there is accumulated data in socket buffer.</description>
      <pubDate>Wed, 30 Jun 2010 06:08:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654741#M677111</guid>
      <dc:creator>joeyu1201</dc:creator>
      <dc:date>2010-06-30T06:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: send() function sleeping for tcp socket</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654742#M677112</link>
      <description>sorry, should be no accumulated data in socket buffer</description>
      <pubDate>Wed, 30 Jun 2010 10:03:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/send-function-sleeping-for-tcp-socket/m-p/4654742#M677112</guid>
      <dc:creator>joeyu1201</dc:creator>
      <dc:date>2010-06-30T10:03:46Z</dc:date>
    </item>
  </channel>
</rss>

