Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 09368200BD6 for ; Sun, 4 Dec 2016 17:13:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F174F160B25; Sun, 4 Dec 2016 16:13:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4739F160AE4 for ; Sun, 4 Dec 2016 17:13:00 +0100 (CET) Received: (qmail 12348 invoked by uid 500); 4 Dec 2016 16:12:59 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 12326 invoked by uid 99); 4 Dec 2016 16:12:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2016 16:12:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 289452C0453 for ; Sun, 4 Dec 2016 16:12:59 +0000 (UTC) Date: Sun, 4 Dec 2016 16:12:59 +0000 (UTC) From: "Thai H (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (NET-571) Hang on running 'setFileTransferMode(FTP.BLOCK_TRANSFER_MODE)' against IIS ftp server on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 04 Dec 2016 16:13:01 -0000 [ https://issues.apache.org/jira/browse/NET-571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15720186#comment-15720186 ] Thai H commented on NET-571: ---------------------------- Could not reproduce with IIS FTP/Windows 7 Log: {quote} {color:red}220 Microsoft FTP Service{color} USER usr1 {color:red}331 Password required for usr1.{color} PASS pwd1 {color:red}230 User logged in.{color} MODE B {color:red}200 Mode B ok.{color} TYPE I {color:red}200 Type set to I.{color} {quote} > Hang on running 'setFileTransferMode(FTP.BLOCK_TRANSFER_MODE)' against IIS ftp server on Windows > ------------------------------------------------------------------------------------------------ > > Key: NET-571 > URL: https://issues.apache.org/jira/browse/NET-571 > Project: Commons Net > Issue Type: Bug > Components: FTP > Reporter: sam liu > Priority: Blocker > > The test codes is: > {code} > FTPClient client = null; > client = new FTPClient(); > client.connect(host, port); > int reply = client.getReplyCode(); > if (client.login(user, password)) { > client.setFileTransferMode(FTP.BLOCK_TRANSFER_MODE); > client.setFileType(FTP.BINARY_FILE_TYPE); > client.setBufferSize(DEFAULT_BUFFER_SIZE); > ... ... > } > {code} > It passed against FileZilla FTP server installed on Windows7, but it will hang on the line 'client.setFileTransferMode(FTP.BLOCK_TRANSFER_MODE);' against IIS ftp server installed on the same Window7 OS. -- This message was sent by Atlassian JIRA (v6.3.4#6332)