The use case was something like: * checkDocBaseUpToDate() // done async if the validity period is passed (means each 5mn check wil be async else sync is ok) * serve() // delegate
No error but the GET has the right content-length but content is empty cause in async sendfile is not processed. Le jeu. 20 avr. 2023 à 22:30, Christopher Schultz < ch...@christopherschultz.net> a écrit : > Rmoain, > > On 4/20/23 15:27, Romain Manni-Bucau wrote: > > I just notice using nio connector+sendfile+asynccontext seems quite not > > functional, is it intended? > > > > My original intent was to add a kind of pre-hook to DefaultServlet which > > was async (nio http client) so wanted to use asynccontext then delegate > to > > super.doGet (more or less) but I got this sendfile issue with such a > mode. > > Is it intended or just part of the code which didnt get enough love? > > Can you give a little more detail? > > You wanted to subclass DefaultServlet but delegate to super.doGet under > some cases, right? Do you always enter async mode, then delegate? What > error/failure do you get? > > -chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > For additional commands, e-mail: dev-h...@tomcat.apache.org > >