<?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 RTCS send() with OPT_SEND_NOWAIT takes a while to return in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-send-with-OPT-SEND-NOWAIT-takes-a-while-to-return/m-p/469964#M15575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I timed sending 1450 bytes via socket send (it's a TCP Stream), on my K64, it can take up to 800 uS. I tried with OPT_SEND_NOWAIT, not using the push flag, and even directly setting the MSG_DONTWAIT in the send command and still see 800uS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The timing was done on a scope (setting pin high/low before/after command).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that sock_stream.c, SOCK_STREAM_send calls RTCSCMD_issue which calls RTCS_msg_send_blocked in both the WAIT and NOWAIT state. There is an RTCS_msg_send command that isn't called. Not sure if this is why it's taking so long to return or is this normal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 22:56:43 GMT</pubDate>
    <dc:creator>rajbatra</dc:creator>
    <dc:date>2016-03-31T22:56:43Z</dc:date>
    <item>
      <title>RTCS send() with OPT_SEND_NOWAIT takes a while to return</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-send-with-OPT-SEND-NOWAIT-takes-a-while-to-return/m-p/469964#M15575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I timed sending 1450 bytes via socket send (it's a TCP Stream), on my K64, it can take up to 800 uS. I tried with OPT_SEND_NOWAIT, not using the push flag, and even directly setting the MSG_DONTWAIT in the send command and still see 800uS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The timing was done on a scope (setting pin high/low before/after command).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that sock_stream.c, SOCK_STREAM_send calls RTCSCMD_issue which calls RTCS_msg_send_blocked in both the WAIT and NOWAIT state. There is an RTCS_msg_send command that isn't called. Not sure if this is why it's taking so long to return or is this normal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 22:56:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-send-with-OPT-SEND-NOWAIT-takes-a-while-to-return/m-p/469964#M15575</guid>
      <dc:creator>rajbatra</dc:creator>
      <dc:date>2016-03-31T22:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS send() with OPT_SEND_NOWAIT takes a while to return</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-send-with-OPT-SEND-NOWAIT-takes-a-while-to-return/m-p/469965#M15576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which MQX version are you using?&lt;/P&gt;&lt;P&gt;There exists 200 ms TCP ACK Delay in Windows 7 tcpip stack. It is intentional by Microsoft, it can be switched off. The workaround is here:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fen-US%2Fw7itpronetworking%2Fthread%2F9f476410-a7a6-4f5d-b9a9-0a63a2bab121%2F" rel="nofollow" target="_blank"&gt;http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/9f476410-a7a6-4f5d-b9a9-0a63a2bab121/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 00:09:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-send-with-OPT-SEND-NOWAIT-takes-a-while-to-return/m-p/469965#M15576</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-04-07T00:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: RTCS send() with OPT_SEND_NOWAIT takes a while to return</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-send-with-OPT-SEND-NOWAIT-takes-a-while-to-return/m-p/469966#M15577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using mqx that came with KSDK 1.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Mac OSX.  Send call takes 810uS (much less than 200ms), but higher than I expect for a No Wait operation. For me to prepare the buffer to send only takes 10uS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 16:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RTCS-send-with-OPT-SEND-NOWAIT-takes-a-while-to-return/m-p/469966#M15577</guid>
      <dc:creator>rajbatra</dc:creator>
      <dc:date>2016-04-07T16:20:13Z</dc:date>
    </item>
  </channel>
</rss>

