-
Notifications
You must be signed in to change notification settings - Fork 927
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
Specify why on Closed{Session,Stream}Exception
#2580
Conversation
Motivation: It is sometimes hard to know why a connection or a stream has been closed or reset. Modifications: - Allow a user specify a message or a cause when creating a `Closed{Session,Stream}Exception`. - Specify a message or a cause when creating `Closed{Session,Stream}Exception` when applicable. - Removed redundant instantiation of `ClosedSessionException`s. - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected. Result: - More information when diagnosing a `Closed{Session,Stream}Exception` - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected.
core/src/main/java/com/linecorp/armeria/client/HttpSessionHandler.java
Outdated
Show resolved
Hide resolved
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.
Thanks! @trustin
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.
Thanks!
Codecov Report
@@ Coverage Diff @@
## master #2580 +/- ##
============================================
- Coverage 73.44% 73.42% -0.02%
- Complexity 10941 10962 +21
============================================
Files 958 958
Lines 42098 42157 +59
Branches 5263 5273 +10
============================================
+ Hits 30919 30954 +35
- Misses 8480 8505 +25
+ Partials 2699 2698 -1
Continue to review full report at Codecov.
|
Motivation: It is sometimes hard to know why a connection or a stream has been closed or reset. Modifications: - Allow a user specify a message or a cause when creating a `Closed{Session,Stream}Exception`. - Specify a message or a cause when creating `Closed{Session,Stream}Exception` when applicable. - Removed redundant instantiation of `ClosedSessionException`s. - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected. - Miscellaneous: - Use `toString()` instead of `getMessage()` to show the cause type in `armeria-retrofit2` Result: - More information when diagnosing a `Closed{Session,Stream}Exception` - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected.
Motivation: It is sometimes hard to know why a connection or a stream has been closed or reset. Modifications: - Allow a user specify a message or a cause when creating a `Closed{Session,Stream}Exception`. - Specify a message or a cause when creating `Closed{Session,Stream}Exception` when applicable. - Removed redundant instantiation of `ClosedSessionException`s. - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected. - Miscellaneous: - Use `toString()` instead of `getMessage()` to show the cause type in `armeria-retrofit2` Result: - More information when diagnosing a `Closed{Session,Stream}Exception` - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected.
Motivation: It is sometimes hard to know why a connection or a stream has been closed or reset. Modifications: - Allow a user specify a message or a cause when creating a `Closed{Session,Stream}Exception`. - Specify a message or a cause when creating `Closed{Session,Stream}Exception` when applicable. - Removed redundant instantiation of `ClosedSessionException`s. - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected. - Miscellaneous: - Use `toString()` instead of `getMessage()` to show the cause type in `armeria-retrofit2` Result: - More information when diagnosing a `Closed{Session,Stream}Exception` - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected.
Motivation: It is sometimes hard to know why a connection or a stream has been closed or reset. Modifications: - Allow a user specify a message or a cause when creating a `Closed{Session,Stream}Exception`. - Specify a message or a cause when creating `Closed{Session,Stream}Exception` when applicable. - Removed redundant instantiation of `ClosedSessionException`s. - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected. - Miscellaneous: - Use `toString()` instead of `getMessage()` to show the cause type in `armeria-retrofit2` Result: - More information when diagnosing a `Closed{Session,Stream}Exception` - Fixed a bug where `ClosedSessionException` is raised when `ClosedStreamException` is expected.
Motivation:
It is sometimes hard to know why a connection or a stream has been
closed or reset.
Modifications:
Closed{Session,Stream}Exception
.Closed{Session,Stream}Exception
when applicable.
ClosedSessionException
s.ClosedSessionException
is raised whenClosedStreamException
is expected.Result:
Closed{Session,Stream}Exception
ClosedSessionException
is raised whenClosedStreamException
is expected.