<?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 Re: tFTPConnection | How to set a connection timeout? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359066#M123960</link>
    <description>You're right, sorry.&lt;BR /&gt;Can't find the feature to change the timeout default value.</description>
    <pubDate>Thu, 30 Mar 2017 16:53:22 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-03-30T16:53:22Z</dc:date>
    <item>
      <title>tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359063#M123957</link>
      <description>&lt;P&gt;I'm looking to set a connection timeout for the tFTPConnection component.&lt;BR /&gt;&lt;BR /&gt;The SFTP server we're connecting to requires more than the default 20 seconds for a connection... Increasing timeout settings in a straight-up linux SFTP call, or through filezilla, works like a charm.&lt;BR /&gt;&lt;BR /&gt;I'd like to try increasing the timeout in my Talend job to see if that works, but I can't find that option anywhere in the tFTPConnection component.&lt;BR /&gt;&lt;BR /&gt;I am using TOS for Data Integration v6.2.1.&lt;BR /&gt;&lt;BR /&gt;I've tried looking at&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=tFTPConnection" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tFTPConnection&lt;/A&gt;, with no luck, and searches in these forums haven't been successful yet.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any help!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 16:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359063#M123957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-30T16:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359064#M123958</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you need to elaborate your own try / catch strategy to retry a fixed times when Ftp connection fails.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;TRF</description>
      <pubDate>Thu, 30 Mar 2017 16:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359064#M123958</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-03-30T16:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359065#M123959</link>
      <description>Hi TRF,
&lt;BR /&gt;Not sure that I follow... &amp;nbsp;I'm happy to retry the connection, but it looks like connecting to the SFTP server requires more than 20 seconds in general. &amp;nbsp;So any retries will continue to fail unless I can tweak the connection timeout on the client side. &amp;nbsp;Changing the server side is not an option in my case.
&lt;BR /&gt;I'm not sure how to tweak the connection timeout - any guidance on that would be awesome.
&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 30 Mar 2017 16:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359065#M123959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-30T16:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359066#M123960</link>
      <description>You're right, sorry.&lt;BR /&gt;Can't find the feature to change the timeout default value.</description>
      <pubDate>Thu, 30 Mar 2017 16:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359066#M123960</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-03-30T16:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359067#M123961</link>
      <description>@TRF quite all right, I really appreciate your responding at all.
&lt;BR /&gt;
&lt;BR /&gt;Right now I'm looking at extending the tFTPConnection component, since the generated code produces these lines...
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;				com.jcraft.jsch.Channel channel_tFTPConnection_1 = session_tFTPConnection_1&lt;BR /&gt;						.openChannel("sftp");&lt;BR /&gt;				channel_tFTPConnection_1.connect();&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;I'll then update that second line to something like...
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;				channel_tFTPConnection_1.connect(TIMEOUT_VALUE);&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;... based on the what the library permits, as seen at...
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://epaul.github.io/jsch-documentation/javadoc/com/jcraft/jsch/Channel.html#connect-int" target="_blank" rel="nofollow noopener noreferrer"&gt;https://epaul.github.io/jsch-documentation/javadoc/com/jcraft/jsch/Channel.html#connect-int&lt;/A&gt;</description>
      <pubDate>Thu, 30 Mar 2017 17:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359067#M123961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-30T17:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359068#M123962</link>
      <description>Good luck! &amp;nbsp;Let us know if it works for you, please.</description>
      <pubDate>Thu, 30 Mar 2017 19:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359068#M123962</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-30T19:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359069#M123963</link>
      <description>Hi,
&lt;BR /&gt;Here is a new feature jira issue:
&lt;A href="https://jira.talendforge.org/browse/TDI-37257" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-37257&lt;/A&gt;.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 31 Mar 2017 03:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359069#M123963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-31T03:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359070#M123964</link>
      <description>@here 
&lt;BR /&gt; 
&lt;BR /&gt;I hacked it for my first pass, by going to... 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;[PATH_TO]\Talend_Open_Studio_Data_Integration-V6.2.1\plugins\org.talend.designer.components.localprovider_6.2.1.20160704_1411\components\tFTPConnection&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Cut into the following file... 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;tFTPConnection_begin.javajet&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;For my version of the file, it contained this on line 170... 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;	channel_&amp;lt;%=cid%&amp;gt;.connect();&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;And as a dirty hardcoded hack I updated it to... 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;	channel_&amp;lt;%=cid%&amp;gt;.connect(60000);&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;... 
&lt;B&gt;which worked perfectly&lt;/B&gt;. 
&lt;BR /&gt; 
&lt;BR /&gt;All other FTP components using this connection were fine, of course, which limited my change to just the tFTPConnection component. 
&lt;BR /&gt; 
&lt;BR /&gt;My next step will be to add in the value as a configuration option, but that's looking like a pretty trivial exercise at this point. 
&lt;BR /&gt; 
&lt;BR /&gt;For what it's worth, this page (and its links) helped me tremendously... 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://www.talendbyexample.com/talend-custom-component-writing.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendbyexample.com/talend-custom-component-writing.html&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks folks for the interest, hopefully this will help others if they needed it. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;I&gt;&lt;FONT color="#ff3333"&gt;It's worth noting that this was for a SFTP connection. &amp;nbsp;I don't know that this approach would necessarily work as-is for other FTP connections (I think they may use different libraries).&lt;/FONT&gt;&lt;/I&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359070#M123964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-31T14:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359071#M123965</link>
      <description>Can't find the "like" button, sorry</description>
      <pubDate>Fri, 31 Mar 2017 14:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359071#M123965</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-03-31T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPConnection | How to set a connection timeout?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359072#M123966</link>
      <description>&lt;BLOCKQUOTE&gt;TRF wrote:&lt;BR /&gt;Can't find the "like" button, sorry&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;This. &amp;nbsp;Good job, cheesedumpling!</description>
      <pubDate>Fri, 31 Mar 2017 16:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPConnection-How-to-set-a-connection-timeout/m-p/2359072#M123966</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-31T16:13:23Z</dc:date>
    </item>
  </channel>
</rss>

