<?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>question Re: ListSftp Processor closes connection? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSftp-Processor-closes-connection/m-p/221860#M79559</link>
    <description>&lt;P&gt;ListSFTP extends ListFileTransfer and that class has performListing() which does:&lt;/P&gt;&lt;PRE&gt;final FileTransfer transfer = getFileTransfer(context);&lt;BR /&gt;final List&amp;lt;FileInfo&amp;gt; listing;&lt;BR /&gt;try {&lt;BR /&gt;    listing = transfer.getListing();&lt;BR /&gt;} finally {&lt;BR /&gt;    IOUtils.closeQuietly(transfer);&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;The FileTransfer here is the SFTPTransfer, so it is being closed in a finally block every time.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 21:25:41 GMT</pubDate>
    <dc:creator>bbende</dc:creator>
    <dc:date>2018-06-13T21:25:41Z</dc:date>
    <item>
      <title>ListSftp Processor closes connection?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSftp-Processor-closes-connection/m-p/221859#M79558</link>
      <description>&lt;P&gt;
	Hello there,&lt;/P&gt;&lt;P&gt;
	I'm using nifi to retrieve files from an sftp server. This server grants multiple access to multiple users.&lt;/P&gt;&lt;P&gt;
	Nifi accesses the server as different users to dowload files.&lt;/P&gt;&lt;P&gt;
	It seems that &lt;STRONG&gt;ListSftp processor&lt;/STRONG&gt; &lt;STRONG&gt;doesn't close connection&lt;/STRONG&gt;, infact - having a maximum amount of connections per ip- i get a an acces error saying i reached maximum amount of connections per ip. &lt;/P&gt;&lt;P&gt;
	checking the source code, in &lt;/P&gt;&lt;PRE&gt;package org.apache.nifi.processors.standard.util.SFTPTransfer&lt;/PRE&gt;&lt;P&gt;
	in &lt;/P&gt;&lt;PRE&gt;getListing &lt;/PRE&gt;&lt;P&gt;method&lt;/P&gt;&lt;P&gt;
	I cannot see any &lt;/P&gt;&lt;PRE&gt;close() &lt;/PRE&gt;&lt;P&gt;request.&lt;/P&gt;&lt;P&gt;
	The only &lt;/P&gt;&lt;PRE&gt;close() &lt;/PRE&gt;&lt;P&gt;method call i can see is in  &lt;/P&gt;&lt;PRE&gt;getChannel &lt;/PRE&gt;&lt;P&gt;method, but i guess this is not the case after listing content in sftp.&lt;/P&gt;&lt;P&gt;
	Is this a known issue, or am I missing something?&lt;/P&gt;&lt;P&gt;
	Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:20:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSftp-Processor-closes-connection/m-p/221859#M79558</guid>
      <dc:creator>davide11</dc:creator>
      <dc:date>2022-09-16T13:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: ListSftp Processor closes connection?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSftp-Processor-closes-connection/m-p/221860#M79559</link>
      <description>&lt;P&gt;ListSFTP extends ListFileTransfer and that class has performListing() which does:&lt;/P&gt;&lt;PRE&gt;final FileTransfer transfer = getFileTransfer(context);&lt;BR /&gt;final List&amp;lt;FileInfo&amp;gt; listing;&lt;BR /&gt;try {&lt;BR /&gt;    listing = transfer.getListing();&lt;BR /&gt;} finally {&lt;BR /&gt;    IOUtils.closeQuietly(transfer);&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;The FileTransfer here is the SFTPTransfer, so it is being closed in a finally block every time.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 21:25:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListSftp-Processor-closes-connection/m-p/221860#M79559</guid>
      <dc:creator>bbende</dc:creator>
      <dc:date>2018-06-13T21:25:41Z</dc:date>
    </item>
  </channel>
</rss>

