You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thai H (JIRA)" <ji...@apache.org> on 2016/12/04 16:12:59 UTC

[jira] [Commented] (NET-571) Hang on running 'setFileTransferMode(FTP.BLOCK_TRANSFER_MODE)' against IIS ftp server on Windows

    [ 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)