Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Understanding AsyncMiddleManServlet request lifecycle

> On Nov 7, 2017, at 9:00 AM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
> 
> Hi,
> 
> On Fri, Nov 3, 2017 at 11:56 PM, Steven Schlansker
> <stevenschlansker@xxxxxxxxx> wrote:
>> 
>> It sure looks like the request object is getting recycled before the callback is being invoked.  But that seems crazy!  How am I to do anything with it if all fields are nulled out first?
> 
> You are mistakenly calling super.onProxyResponseSuccess(...) _before_
> pulling out the PROXY_CONTEXT attribute.

Ah, of course, thank you for identifying my mistake!  Too used to writing synchronous code, when the cleanup would happen after method return...


Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


Back to the top