Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Deferred not working with tomcat 8 [SPR-12204] #16818
I have a fully working program in tomcat 7 (spring 4.0.6) that uses DeferredResult .
After upgrading to tomcat 8 (tried pivotal TC server 3.0.0 as well as Tomcat 8.0.11), this stops working and client waits forever for a response.
I tried upgrading to spring 4.1 and this did not help.
The only resolution I've found is going back to tomcat 7 or making my function that runs deferredResult.setResult(...)
May this be related to tomcat 8 using NIO connector as default?
Affects: 4.0.6, 4.1 GA
Referenced from: commits spring-projects/spring-framework-issues@caedc19
1 votes, 6 watchers
Rossen Stoyanchev commented
The spring-mvc-showcase has DeferredResult examples on the "Async Requests" tab (DeferredResultController). Those work with Tomcat 8 so it doesn't appear to be as simple as upgrading to Tomcat 8. Can you create a simple example? Try the project templates in spring-framework-issues.
Moosh Ben commented
Sébastien Deleuze commented
I confirm this issue, I have added the provided test project to the spring-framework-issues repository.
I have also been able to reproduce it with spring-mvc-showcase, if I disable the 3 seconds timeout.
It still occurs when using the blocking connector instead of the NIO one.