<?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 Problem in FTP server, need to close socket asap. in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-in-FTP-server-need-to-close-socket-asap/m-p/167427#M5933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi, there is my problem...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a ftp server listen on port 21 and another socket listen on port 5000. Port 5000 gets data from a PABX and writes in a flash.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When the flash is full, i need to close the port 5000 socket asap so i dont lose data, but what is happening is when i tell the port 5000 socket to close it takes some time and it doesnt stop to get data from pabx, so i lose data and there is a worst thing happening, the tcp buffers get full and everything stops working.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How do i clean those tcp buffers after i close the socket? Theres a way to close the socket immediatly?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2007 19:17:48 GMT</pubDate>
    <dc:creator>Nilson</dc:creator>
    <dc:date>2007-11-27T19:17:48Z</dc:date>
    <item>
      <title>Problem in FTP server, need to close socket asap.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-in-FTP-server-need-to-close-socket-asap/m-p/167427#M5933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi, there is my problem...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have a ftp server listen on port 21 and another socket listen on port 5000. Port 5000 gets data from a PABX and writes in a flash.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When the flash is full, i need to close the port 5000 socket asap so i dont lose data, but what is happening is when i tell the port 5000 socket to close it takes some time and it doesnt stop to get data from pabx, so i lose data and there is a worst thing happening, the tcp buffers get full and everything stops working.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How do i clean those tcp buffers after i close the socket? Theres a way to close the socket immediatly?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 19:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-in-FTP-server-need-to-close-socket-asap/m-p/167427#M5933</guid>
      <dc:creator>Nilson</dc:creator>
      <dc:date>2007-11-27T19:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in FTP server, need to close socket asap.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-in-FTP-server-need-to-close-socket-asap/m-p/167428#M5934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Oh well, i thought i would have more trouble to solve this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Setting the socket flags to as below did the job.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;pabx_server_socket-&amp;gt;so_options = SO_LINGER;&lt;BR /&gt;pabx_server_socket-&amp;gt;linger = 0; &amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;pabx_communication_socket-&amp;gt;so_options = SO_LINGER;&lt;BR /&gt;pabx_communication_socket-&amp;gt;linger = 0; &amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2007 20:35:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-in-FTP-server-need-to-close-socket-asap/m-p/167428#M5934</guid>
      <dc:creator>Nilson</dc:creator>
      <dc:date>2007-11-27T20:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in FTP server, need to close socket asap.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-in-FTP-server-need-to-close-socket-asap/m-p/167429#M5935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Just a friendly reminder, please include the product # in the subject line so everyone knows which device your are programming.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;macl&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 00:11:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Problem-in-FTP-server-need-to-close-socket-asap/m-p/167429#M5935</guid>
      <dc:creator>macl</dc:creator>
      <dc:date>2007-11-28T00:11:35Z</dc:date>
    </item>
  </channel>
</rss>

