<?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 HTTPSRV unresponsive in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376711#M12554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've spotted a strange problem with the MQX4.1 web server. After a few hours of working it becomes unresponsive and I can't log into.&lt;/P&gt;&lt;P&gt;It's very random behavior and sometimes server dies after few days, sometimes more frequent.&lt;/P&gt;&lt;P&gt;Restarting the HTTPSRV by using HTTSRV_release() and HTTPSRV_init() is not solving the problem.&lt;/P&gt;&lt;P&gt;I've noticed that every incoming TCP packet has been dropped because the CONN_COUNT&amp;gt;=RTCSCFG_TCP_MAX_CONNECTIONS.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CaptureRTCS.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49557iD58F45D93481F600/image-size/large?v=v2&amp;amp;px=999" role="button" title="CaptureRTCS.JPG.jpg" alt="CaptureRTCS.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of the memory usage the&amp;nbsp; RTCSCFG_TCP_MAX_CONNECTIONS = 2 in my case.&lt;/P&gt;&lt;P&gt;I don't understand why the CONN_COUNT =2. It looks like the RTCS is not releasing the connections properly.&lt;/P&gt;&lt;P&gt;After some tests I can say that the crash happens whenever two clients trying to connect to the server at the same time.&lt;/P&gt;&lt;P&gt;There are few similar problems posted by forum's members but non of the proposed solutions works in this case.&lt;/P&gt;&lt;P&gt;(My setup: MQX4.1, BSP: twrmcf52259).&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Tomasz Kulinski&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 12:20:12 GMT</pubDate>
    <dc:creator>tomaszk</dc:creator>
    <dc:date>2015-01-26T12:20:12Z</dc:date>
    <item>
      <title>HTTPSRV unresponsive</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376711#M12554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've spotted a strange problem with the MQX4.1 web server. After a few hours of working it becomes unresponsive and I can't log into.&lt;/P&gt;&lt;P&gt;It's very random behavior and sometimes server dies after few days, sometimes more frequent.&lt;/P&gt;&lt;P&gt;Restarting the HTTPSRV by using HTTSRV_release() and HTTPSRV_init() is not solving the problem.&lt;/P&gt;&lt;P&gt;I've noticed that every incoming TCP packet has been dropped because the CONN_COUNT&amp;gt;=RTCSCFG_TCP_MAX_CONNECTIONS.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CaptureRTCS.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/49557iD58F45D93481F600/image-size/large?v=v2&amp;amp;px=999" role="button" title="CaptureRTCS.JPG.jpg" alt="CaptureRTCS.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of the memory usage the&amp;nbsp; RTCSCFG_TCP_MAX_CONNECTIONS = 2 in my case.&lt;/P&gt;&lt;P&gt;I don't understand why the CONN_COUNT =2. It looks like the RTCS is not releasing the connections properly.&lt;/P&gt;&lt;P&gt;After some tests I can say that the crash happens whenever two clients trying to connect to the server at the same time.&lt;/P&gt;&lt;P&gt;There are few similar problems posted by forum's members but non of the proposed solutions works in this case.&lt;/P&gt;&lt;P&gt;(My setup: MQX4.1, BSP: twrmcf52259).&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Tomasz Kulinski&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 12:20:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376711#M12554</guid>
      <dc:creator>tomaszk</dc:creator>
      <dc:date>2015-01-26T12:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPSRV unresponsive</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376712#M12555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately it is hard to say what could be reason for that behavior. Since using HTTSRV_release() and HTTPSRV_init() is not solving the problem, problem will be probably somewhere deeper and limited number of TCP connections is probably just side effect.&lt;/P&gt;&lt;P&gt;Because it's very random behavior it could happened that we lost some connection end packet…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also possible that this source of this issue was already fixed.&lt;/P&gt;&lt;P&gt;As first I would like to recommend test it on MQX 4.1.1.&lt;/P&gt;&lt;P&gt;Latest released RTCS could be used from MQX4.1.2 for Vybrid or from KSDK1.1.0.&lt;/P&gt;&lt;P&gt;&lt;A href="https://freescale.flexnetoperations.com/control/frse/download?element=6003621"&gt;https://freescale.flexnetoperations.com/control/frse/download?element=6003621&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://freescale.flexnetoperations.com/control/frse/download?element=6011601"&gt;https://freescale.flexnetoperations.com/control/frse/download?element=6011601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please test it with some newer RTCS code?&lt;/P&gt;&lt;P&gt;BTW: There is also MQX 4.1.0.1 patch which contains several important RTCS bug fixes. Did you install it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;RadekS&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>Fri, 30 Jan 2015 14:45:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376712#M12555</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-01-30T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPSRV unresponsive</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376713#M12556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks Radek, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Your solution works! I have tested the MQX 4.1.1 + RTCS 4.1.2 for Vybrid and the web server is rock solid now. This is the http server I've been waiting for a long time (since MQX3.6) :smileyhappy:&lt;/SPAN&gt;. Good job.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Unfortunately, the size of the new RTCS 4.1.2 is bigger than 4.1.1 and I can't use it because my code exceeds the internal memory size for my &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;micro now .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is there any way to shrink the new RTCS&amp;nbsp; by removing some components i.e.&amp;nbsp; websockets?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Best regards, &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 12:47:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376713#M12556</guid>
      <dc:creator>tomaszk</dc:creator>
      <dc:date>2015-02-04T12:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: HTTPSRV unresponsive</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376714#M12557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad that it works.&lt;/P&gt;&lt;P&gt;By internal memory you mean Flash or RAM?&lt;/P&gt;&lt;P&gt;If you will comment out websocket code, you can save some flash.&lt;/P&gt;&lt;P&gt;If you need save some RAM, you can tune stacksizes for your case (MCU and toolchain). You can also decrease session buffer size and socket buffer size, but it influences throughput – it will be slower.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can disable components/protocols which you don’t use by macros. E.g ICMP, DHCP, UDP,… &lt;/P&gt;&lt;P&gt;Note: DHCP depends on UDP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 14:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/HTTPSRV-unresponsive/m-p/376714#M12557</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-02-04T14:41:41Z</dc:date>
    </item>
  </channel>
</rss>

