https://bz.apache.org/bugzilla/show_bug.cgi?id=66471

--- Comment #4 from Han Li <li...@apache.org> ---
(In reply to Konstantin Kolinko from comment #3)
> (In reply to Reto Weiss from comment #2)
> 
> Use of any ThreadLocal does not play well with asynchronous processing.
> 
> The information of "whether the request was submitted via a secure channel"
> belongs to the request, not to a specific thread.

+1
> 
> I think that using Request.setAttibute() may be a way to go, if other more
> specific API is missing.
> 
> Alternatively, navigating up the wrapper chain via
> ServletRequestWrapper.getRequest().
> 
> 
> Note the in org.apache.catalina.connector.Request:
> 
> 1) Method Request.setSecure(boolean secure).
> 
> 2) How Request.setAttribute(String name, Object value) is implemented, and
> use of SpecialAttributeAdapter there.

I haven't come up with a better solution than this, I've already implemented it
according to this solution and commit, please review it for me, thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to