ASF Bugzilla – Attachment 25783 Details for
Bug 49613
Request.getAttributeNames() slows down some applications
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch to specified issue
tomcat-6x-request-getattributenames.patch (text/plain), 1.02 KB, created by
Sampo Savolainen
on 2010-07-19 06:44:20 UTC
(
hide
)
Description:
Proposed patch to specified issue
Filename:
MIME Type:
Creator:
Sampo Savolainen
Created:
2010-07-19 06:44:20 UTC
Size:
1.02 KB
patch
obsolete
>--- Request.java 2010-06-17 19:23:22.000000000 +0300 >+++ patch/Request.java 2010-07-19 13:36:35.000000000 +0300 >@@ -170,6 +170,7 @@ > * The attributes associated with this Request, keyed by attribute name. > */ > protected HashMap attributes = new HashMap(); >+ protected boolean sslAttributesRead = false; > > > /** >@@ -412,6 +413,7 @@ > localName = null; > > attributes.clear(); >+ sslAttributesRead = false; > notes.clear(); > cookies = null; > >@@ -912,6 +914,8 @@ > attributes.put(Globals.SSL_SESSION_ID_ATTR, attr); > } > attr = attributes.get(name); >+ >+ sslAttributesRead = true; > } > return attr; > } >@@ -955,7 +959,7 @@ > * attributes and may also support additional attributes. > */ > public Enumeration getAttributeNames() { >- if (isSecure()) { >+ if (isSecure() && !sslAttributesRead) { > getAttribute(Globals.CERTIFICATES_ATTR); > } > return new Enumerator(attributes.keySet(), true);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49613
:
25782
| 25783