<?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>MQX Software SolutionsのトピックRe: MQX 4.0 RTCS ftp accept blocking function</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412619#M13790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend two options.&lt;/P&gt;&lt;P&gt;1. Modify the socket options for the socket like OPT_TIMEWAIT_TIMEOUT and see if this helps to get out of the accept due the timeout.&lt;/P&gt;&lt;P&gt;2. Use a watchdog for the task FTP task that runs for the data transfers. The task's name is "ftpsrv transfer". If the watchdog expires then kill the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Garabo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;STRONG&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/STRONG&gt;&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 20:56:50 GMT</pubDate>
    <dc:creator>Luis_Garabo</dc:creator>
    <dc:date>2015-05-08T20:56:50Z</dc:date>
    <item>
      <title>MQX 4.0 RTCS ftp accept blocking function</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412618#M13789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm testing an FTP server it based on Freescale demo. &lt;/P&gt;&lt;P&gt;Normally the system works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem arises when I try special cases, in my case when I want to transfer a file, open the second ftps port and just before running the rtcs accept routines I break the connection of the client (by removing the Ethernet cable from the PC client side).&lt;/P&gt;&lt;P&gt;So the Kinetis does not go out of the rtcs accept's routine blocking the ftp server indefinitely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly you know how can I do to make this routine non-blocking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Michele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 08:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412618#M13789</guid>
      <dc:creator>gianmichelepasi</dc:creator>
      <dc:date>2015-05-08T08:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.0 RTCS ftp accept blocking function</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412619#M13790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend two options.&lt;/P&gt;&lt;P&gt;1. Modify the socket options for the socket like OPT_TIMEWAIT_TIMEOUT and see if this helps to get out of the accept due the timeout.&lt;/P&gt;&lt;P&gt;2. Use a watchdog for the task FTP task that runs for the data transfers. The task's name is "ftpsrv transfer". If the watchdog expires then kill the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Garabo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;STRONG&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/STRONG&gt;&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 20:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412619#M13790</guid>
      <dc:creator>Luis_Garabo</dc:creator>
      <dc:date>2015-05-08T20:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.0 RTCS ftp accept blocking function</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412620#M13791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replay Garabo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="g-unit"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;I have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;already&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;changed&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;OPT_TIMEWAIT_TIMEOUT option&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;but&lt;/SPAN&gt; &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;I don't get&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;expected &lt;/SPAN&gt;&lt;/SPAN&gt;results&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="g-unit"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;For the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;watchdog&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;ok&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;but I can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;just close&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;socket&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;passed to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;accept&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;routine&lt;/SPAN&gt;, I can't close &lt;SPAN class="hps"&gt;the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;socket created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;by&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;accept&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;routine (I don't have the associated pointer).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;I could close&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;all sockets&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;restart&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;FTP&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;server&lt;/SPAN&gt;, you know how can &lt;SPAN class="hps"&gt;I &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;close all&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;open&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;sockets&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and their areas&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;memory&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="g-unit"&gt;For this I test this answer &lt;A href="https://community.nxp.com/thread/317418"&gt;Socket Accept abort behaviour problem&lt;/A&gt; but this code &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;doesn't always work&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;properly&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;sometimes it block FW &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;in closing&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;socket&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for availability&lt;/P&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Michele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 10:59:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412620#M13791</guid>
      <dc:creator>gianmichelepasi</dc:creator>
      <dc:date>2015-05-11T10:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.0 RTCS ftp accept blocking function</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412621#M13792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michele,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dig into the code and couldn't find a clean way to close all the open sockets in MQX. It would be necessary to implement such function/API that reads for all the sockets and close them. The only solution I see is to do a software reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I couldn't find a better approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Garabo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 20:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-0-RTCS-ftp-accept-blocking-function/m-p/412621#M13792</guid>
      <dc:creator>Luis_Garabo</dc:creator>
      <dc:date>2015-05-18T20:58:06Z</dc:date>
    </item>
  </channel>
</rss>

