| Summary: | Slow server shutdown | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Trygve Sanne Hardersen <trygve> | ||||
| Component: | server | Assignee: | Greg Wilkins <gregw> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | jetty-inbox | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 7.1.x | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Trygve Sanne Hardersen
Created attachment 182134 [details]
Shutdown patch for SelectorManager
Patch created against Jetty trunk revision 2459. I grant you this under that Apache License version 2.0.
That code was changed to avoid a rare race condition of closing while the selection was in process. It obviously has harmed the normal shutdown. It's now been replaced by a simple spin check that waits for the the selector to exit before closing endpoints and the connector. r2460 Many thanks, this makes the shutdown very fast. |