commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (VFS-567) Timeout in vsFTPd causes exception when executing another command
Date Wed, 23 Sep 2015 19:58:04 GMT

     [ https://issues.apache.org/jira/browse/VFS-567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bernd Eckenfels resolved VFS-567.
---------------------------------
       Resolution: Fixed
         Assignee: Bernd Eckenfels
    Fix Version/s: 2.1

Thanks Antonio, committed your patch: http://svn.apache.org/viewvc?rev=1704927&view=rev

> Timeout in vsFTPd causes exception when executing another command
> -----------------------------------------------------------------
>
>                 Key: VFS-567
>                 URL: https://issues.apache.org/jira/browse/VFS-567
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: vsFTPd 3.0.2 on Kubuntu 14.10
>            Reporter: Antonio Petrelli
>            Assignee: Bernd Eckenfels
>             Fix For: 2.1
>
>         Attachments: commons-vfs-disconnect.diff, vfs-quit-problem.zip
>
>
> After a timeout in vsFTPd, a QUIT command is sent and a 421 Timeout response is sent
back to the Java client. After that, a SocketException (broken pipe) is raised and not correctly
managed.
> I am attaching a test case, this is the stack trace:
> Exception in thread "main" org.apache.commons.vfs2.FileSystemException: Could not determine
the type of file "ftps://localhost/javadev/vfs/input".
> 	at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1526)
> 	at QuitProblemMain.main(QuitProblemMain.java:41)
> Caused by: java.net.SocketException: Pipe interrotta
> 	at java.net.SocketOutputStream.socketWrite0(Native Method)
> 	at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
> 	at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
> 	at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)
> 	at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)
> 	at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:864)
> 	at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:835)
> 	at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
> 	at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
> 	at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
> 	at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
> 	at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
> 	at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
> 	at java.io.BufferedWriter.flush(BufferedWriter.java:254)
> 	at org.apache.commons.net.ftp.FTP.__send(FTP.java:505)
> 	at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:479)
> 	at org.apache.commons.net.ftp.FTPSClient.sendCommand(FTPSClient.java:541)
> 	at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:608)
> 	at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:582)
> 	at org.apache.commons.net.ftp.FTP.quit(FTP.java:864)
> 	at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.disconnect(FTPClientWrapper.java:118)
> 	at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFiles(FTPClientWrapper.java:152)
> 	at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doGetChildren(FtpFileObject.java:136)
> 	at org.apache.commons.vfs2.provider.ftp.FtpFileObject.getChildFile(FtpFileObject.java:106)
> 	at org.apache.commons.vfs2.provider.ftp.FtpFileObject.getInfo(FtpFileObject.java:192)
> 	at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doGetType(FtpFileObject.java:320)
> 	at org.apache.commons.vfs2.provider.AbstractFileObject.getType(AbstractFileObject.java:1517)
> 	... 1 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message