mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: Mina FTP Server : session.close(true) problem
Date Fri, 28 Oct 2016 10:09:17 GMT
Hi,


Le 28/10/16 à 11:52, Robin Vermes a écrit :
> Hello,
>
>
>
> I have got a problem developing a FTP server with the Apache Mina Ftp
> Server API.
>
>
>
> I need my server to be able to shut down immediately a transferring
> session. I am trying to do this using the FtpIoSession.close(true) method.
> What I do not understand is that it is working when I am connecting a
> client via FileZilla and uploading a file, but if I use my own FTP client
> (based on this tutorial : http://www.codejava.net/java-
> se/networking/ftp/java-ftp-file-upload-tutorial-and-example ), the session
> only closes after the transfer has finished.
>
>
>
> After having a closer look via the eclipse debugger, it appears the workers
> in org.apache.mina.filter.executor.OrderedThreadPoolExecutor do run the
> “session closed” task only when the transfer has finished (for the second
> case).

This is a bug that has been fixed in MINA 2.0.16, which is going to be
used in FtpServer 1.1.0, both being currently voted.

I expect those two packages to be available this week-end.


Mime
View raw message