kalencaya edited a comment on issue #5098:
URL: 
https://github.com/apache/incubator-dolphinscheduler/issues/5098#issuecomment-803231913


   a little warn about filter.
   I had developed same request log functions within dubbo and springmvc, which 
dubbo for aspect and springmvc for filter.
   Filter worked well for springmvc after I solved response stream can't be 
readed many times by ContentCachingRequestWrapper and 
ContentCachingResponseWrapper.
   But when I tried to add async http api, new question encountered. springmvc 
framework supports Callable态WebAsyncTask态DeferredResult async methods all 
failed, which can't be responsed until timeout. Only servlet3  AsyncContext 
succeed just I operated response stream directly. 
   when I replaced filter with AsyncHandlerInterceptor provided by springmvc 
framework,  above two questions disappeared.
   
   hope my experience can help you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to