Closed sealedtx closed 4 years ago
Improper closing by client causes infinite handling exception SocketException inside IOException catch block produced by reader.readline(): https://github.com/Guichaguri/MinimalFTP/blob/801754d65cf2005446e85cdfec16ffcb6efbbce1/src/main/java/com/guichaguri/minimalftp/FTPConnection.java#L558-L568
SocketException
IOException
reader.readline()
Due to simple return the thread ConnectionThread hangs forever and consume a lot of CPU because of handling exceptions and filling stacktraces.
return
ConnectionThread
Improper closing by client causes infinite handling exception
SocketException
insideIOException
catch block produced byreader.readline()
: https://github.com/Guichaguri/MinimalFTP/blob/801754d65cf2005446e85cdfec16ffcb6efbbce1/src/main/java/com/guichaguri/minimalftp/FTPConnection.java#L558-L568Due to simple
return
the threadConnectionThread
hangs forever and consume a lot of CPU because of handling exceptions and filling stacktraces.