Bug 48655 - Active multipart downloads prevent tomcat shutdown.
Summary: Active multipart downloads prevent tomcat shutdown.
Alias: None
Product: Tomcat Native
Classification: Unclassified
Component: Library (show other bugs)
Version: 1.1.19
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2010-02-02 02:12 UTC by Lyle Winton
Modified: 2017-08-21 17:04 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Lyle Winton 2010-02-02 02:12:30 UTC
I was testing stability of Tomcat Native for high performance file downloads.  Specifically I was downloading a 2GB file using a download manager that supports multi-part downloads (simultaneous download of file segments).  Download works fine, however, if you try to shutdown tomcat during the multipart download it hangs indefinitely and the CPU of the tomcat java process goes up.  (Single part downloads work fine, completed multi-part download causes no shutdown problems, and with tomcat native turned off the shutdown works fine.)

Tomcat version:  6.0.24
OS:  Windows XP SP3
Tomcat Native binaries from:
APR binaries:  apr-1.3.6-iconv-1.2.1-util-1.3.8-win32-x86-msvcrt60.zip
Comment 1 jfclere 2011-03-10 06:07:24 UTC
Which tool are you using?
Comment 2 Mark Thomas 2017-08-21 16:17:38 UTC
I can re-create this with Tomcat trunk, Tomcat Native trunk and the "Download them all" add-on for Firefox.

Stopping Tomcat in the middle of a large download triggered a JVM crash. Not a major problem since Tomcat was stopping anyway but it would be better to shutdown cleanly.
Comment 3 Mark Thomas 2017-08-21 17:04:11 UTC
In the current code at least, this appears to have been an issue in Tomcat rather than the native library.

Fixed in:
- trunk for 9.0.0.M27 onwards
- 8.5.x for 8.5.21 onwards
- 8.0.x for 8.0.47 onwards
- 7.0.x for 7.0.82 onwards