Skip to content

Commit

Permalink
Merge pull request #1706 from ropalka/UNDERTOW-2526
Browse files Browse the repository at this point in the history
[UNDERTOW-2526] Rename DeploymentInfo methods dealing with async context timeout containing typo
  • Loading branch information
fl4via authored Dec 4, 2024
2 parents a4720e3 + ff0e3c9 commit 84c2d6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,14 +320,14 @@ public DeploymentInfo setDefaultSessionTimeout(final int defaultSessionTimeout)
return this;
}

public long getDefaultAsyncConextTimeout() {
public long getDefaultAsyncContextTimeout() {
return defaultAsyncContextTimeout;
}

/**
* @param defaultAsyncContextTimeout The default async context timeout, in milliseconds
*/
public DeploymentInfo setDefaultAsyncConextTimeout(final long defaultAsyncContextTimeout) {
public DeploymentInfo setDefaultAsyncContextTimeout(final long defaultAsyncContextTimeout) {
this.defaultAsyncContextTimeout = defaultAsyncContextTimeout;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ public void run() {
}
});
//If its chain and non default value is set, use it
if(previousAsyncContext!=null && previousAsyncContext.getTimeout() != servletRequestContext.getDeployment().getDeploymentInfo().getDefaultAsyncConextTimeout()) {
if(previousAsyncContext!=null && previousAsyncContext.getTimeout() != servletRequestContext.getDeployment().getDeploymentInfo().getDefaultAsyncContextTimeout()) {
this.timeout = previousAsyncContext.getTimeout();
} else {
this.timeout = servletRequestContext.getDeployment().getDeploymentInfo().getDefaultAsyncConextTimeout();
this.timeout = servletRequestContext.getDeployment().getDeploymentInfo().getDefaultAsyncContextTimeout();
}
}

Expand Down

0 comments on commit 84c2d6c

Please sign in to comment.