Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
joakime committed Jan 26, 2023
2 parents 7f0294d + 07d36f7 commit 63d963d
Show file tree
Hide file tree
Showing 4 changed files with 297 additions and 52 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!groovy

pipeline {
agent any
agent none
// save some io during the build
options {
skipDefaultCheckout()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,19 @@ private String send(String command, int wait)
}
else
{
//Wait only a small amount of time to ensure TCP has sent the message
s.setSoTimeout(1000);
s.getInputStream().read();
try
{
//Wait only a small amount of time to ensure TCP has sent the message
s.setSoTimeout(1000);
s.getInputStream().read();
}
catch (Exception e)
{
if (getLog().isDebugEnabled())
getLog().error("Error after sending command: " + command + ". Check the server state.", e);
else
getLog().info(e.getMessage() + " after sending command: " + command + ". Check the server state.");
}
}

return response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ protected void forward(ServletRequest request, ServletResponse response, Dispatc
checkUriViolations(_uri, baseRequest);

// If we have already been forwarded previously, then keep using the established
// original value. Otherwise, this is the first forward and we need to establish the values.
// original value. Otherwise, this is the first forward, and we need to establish the values.
// Note: the established value on the original request for pathInfo and
// for queryString is allowed to be null, but cannot be null for the other values.
// Note: the pathInfo is passed as the pathInContext since it is only used when there is
// no mapping, and when there is no mapping the pathInfo is the pathInContext.
if (old_attr.getAttribute(FORWARD_REQUEST_URI) == null)
baseRequest.setAttributes(new ForwardAttributes(old_attr,
old_uri.getPath(),
old_context.getContextHandler().getContextPathEncoded(),
baseRequest.getContextPath(),
baseRequest.getPathInContext(),
source_mapping,
old_uri.getQuery()));
Expand Down
Loading

0 comments on commit 63d963d

Please sign in to comment.