Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
("[devtest] request-dispatcher-forward-send-error-commit-response failure")


git-svn-id: https://svn.java.net/svn/glassfish~svn/trunk/main@53779 6f3ba3e3-413c-0410-a8aa-90bee3ab43b5
  • Loading branch information
swchan2 committed May 2, 2012
1 parent bc35935 commit b955533
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ protected synchronized Object initialValue() {
private String servletPath;
private String pathInfo;

private boolean initRequestFacadeHelper = false;

// Allow Grizzly to auto detect a remote close connection.
public final static boolean discardDisconnectEvent =
Boolean.getBoolean("org.glassfish.grizzly.discardDisconnect");
Expand Down Expand Up @@ -616,6 +618,7 @@ public void recycle() {

mappingData.recycle();

initRequestFacadeHelper = false;
if (enforceScope) {
if (facade != null) {
facade.clear();
Expand Down Expand Up @@ -836,16 +839,25 @@ public HttpServletRequest getRequest(boolean maskDefaultContextMapping) {
if (!maskDefaultContextMapping || !isDefaultContext) {
if (facade == null) {
facade = new RequestFacade(this);
}

if (!initRequestFacadeHelper) {
attributes.put(Globals.REQUEST_FACADE_HELPER,
facade.getRequestFacadeHelper());
initRequestFacadeHelper = true;
}
return facade;
} else {
if (defaultContextMaskingFacade == null) {
defaultContextMaskingFacade = new RequestFacade(this, true);
}

if (!initRequestFacadeHelper) {
attributes.put(Globals.REQUEST_FACADE_HELPER,
defaultContextMaskingFacade.getRequestFacadeHelper());
initRequestFacadeHelper = true;
}

return defaultContextMaskingFacade;
}
}
Expand Down

0 comments on commit b955533

Please sign in to comment.