-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing notifyRemoteAsyncErrors http config wiring #11897
Merged
lorban
merged 25 commits into
jetty-12.0.x
from
fix/jetty-12.0.x/wire-isNotifyRemoteAsync
Jun 18, 2024
Merged
Changes from 18 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
97f9c1d
fix missing notifyRemoteAsyncErrors http config wiring
lorban 3e74543
Merge remote-tracking branch 'origin/jetty-12.0.x' into fix/jetty-12.…
lorban f10b245
add tests
lorban 2943577
remove ported test
lorban 9fbae2a
fix checkstyle
lorban c2d4d2a
rename tests
lorban 3663281
handle review comments
lorban 6a64240
Merge remote-tracking branch 'origin/jetty-12.0.x' into fix/jetty-12.…
lorban 8b35d6d
move notifyRemoteAsyncErrors logic to Core API
lorban d375c8a
wire h3 reset
lorban 0fb278f
wire h3 reset
lorban ceaa746
add h3 test
lorban dfb2e2b
Merge remote-tracking branch 'origin/jetty-12.0.x' into fix/jetty-12.…
lorban 09ea4e9
add h3 test
lorban ecd9e98
fix checkstyle
lorban bf492f4
add ee9 tests
lorban 1de023f
remove unneeded code
lorban efc7170
fix compilation
lorban 9229515
fix doc
lorban 2a63ee4
rewire h3
lorban 3d2f744
rewire h2
lorban 3d2e2fd
change wrapping in h2
lorban c0458a7
change wrapping in h3
lorban a428f3c
refactor ee* tests
lorban bacbabe
refactor ee* tests
lorban File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -67,10 +67,10 @@ public void onTimeout(TimeoutException timeout, BiConsumer<Runnable, Boolean> co | |||||
} | ||||||
|
||||||
@Override | ||||||
public Runnable onFailure(Throwable failure, Callback callback) | ||||||
public Runnable onFailure(Throwable failure, boolean remote, Callback callback) | ||||||
{ | ||||||
if (LOG.isDebugEnabled()) | ||||||
LOG.debug("failure on {}", this, failure); | ||||||
LOG.debug("{}failure on {}", remote ? "remote " : "", this, failure); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
processFailure(failure); | ||||||
close(failure); | ||||||
return callback::succeeded; | ||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,7 +204,7 @@ else if (key == SettingsFrame.MAX_BLOCKED_STREAMS) | |
private void failControlStream(Throwable failure) | ||
{ | ||
long error = HTTP3ErrorCode.CLOSED_CRITICAL_STREAM_ERROR.code(); | ||
onFailure(error, "control_stream_failure", failure); | ||
onFailure(false, error, "control_stream_failure", failure); | ||
} | ||
|
||
@Override | ||
|
@@ -254,9 +254,9 @@ protected boolean onIdleTimeout() | |
} | ||
|
||
@Override | ||
protected void onFailure(long error, String reason, Throwable failure) | ||
protected void onFailure(boolean remote, long error, String reason, Throwable failure) | ||
{ | ||
session.onSessionFailure(error, reason, failure); | ||
session.onSessionFailure(error, remote, reason, failure); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you keep the parameter order to be [remote, error, reason] like elsewhere? |
||
} | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.