XI 3.0 / PI 7.0 File Adapter: FTP Timeout Handling
Oct 6th, 2009 | By Ole | Category: SAP XI/PISAP Note Number: 849089
Symptom
You have configured an SAP XI 3.0 / PI 7.0 J2EE File Adapter communication channel with the Transport Protocol set to “File Transfer Protocol (FTP)”. You are experiencing sporadic conectivity problems to the FTP server on the transport or network layer, which result in stalled TCP/IP connections and cause the FTP channel to hang indefinitely. If you are using an FTP receiver channel, the message processing within the Adapter Framework stops after that hanging receiver channel has received a certain amount of mesages depending on the number of configured worker threads for the Messaging System.
Other terms
XI30, PI70, AFW, Adapter Framework, timeout, stalled
Solution
An updated version of the SAP XI 3.0 / PI 7.0 File Adapter allows the configuration of a timeout for FTP sessions that will interrupt the channel’s processing if the server has not sent any data for longer than a configurable amount of time.
In order not to break any existing scenarios, the configuration of this timeout requires the use of an advanced mode configuration parameter.
To configure a timeout for the FTP connection, please enable the “Advanced Mode” for the respective FTP communication channel in the Integration Directory and add an entry “ftp.timeout”=timeoutSecs (without any quotation marks) to the “Additional Parameters” section, where timeoutSecs is the desired FTP timeout in seconds.
In more recent support packages you can alternatively set the “Timeout” parameter available in the “FTP Connection Parameters” section.
The use of this feature requires that you have deployed at least patch 6 for Support Package 11 or patch 2 for Support Package 12 of the XI ADAPTERFRAMEWORK CORE 3.0 software component.
Import the relevant SAPXIAFC11P_6.SCA / SAPXIAFC12P_2.SCA archive for SAP Exchange Infrastructure XI 3.0 as described in the NetWeaver 04 Support Package Stack Guide.
For Netweaver ‘04, the archive and the guide are located on the SAP Service Marketplace under the alias “/nw04″ -> “Support Package Stacks Information”.
For Netweaver 2004s, the archive and the guide are located on the SAP Service Marketplace under the alias “/nw2004s” -> “Support Package Stacks Information”.
