-
Notifications
You must be signed in to change notification settings - Fork 652
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 ClassCastException in HttpOperations#initShortId()
#3542
Conversation
Calling `HttpOperations#initShortId()` could cause a `ClassCastException` if the underlying connection was replaced between checking its type and casting it to `AtomicLong`, for example if `ChannelOperations#terminate()` was called on another thread. See also: https://github.com/reactor/reactor-netty/blob/667f8c9cbf5a227a15f6d0a2f3aab7c4777613da/reactor-netty-core/src/main/java/reactor/netty/channel/ChannelOperations.java#L515 Fixes reactor#3541
@joschi Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
IMHO this is an obvious fix, so no need to sign the CLA.
|
@pivotal-cla This is an Obvious Fix |
@joschi This Pull Request contains an obvious fix. Signing the Contributor License Agreement is not necessary. |
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 for PR!
reactor-netty-http/src/main/java/reactor/netty/http/HttpOperations.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Violeta Georgieva <milesg78@gmail.com>
Calling `HttpOperations#initShortId()` could cause a `ClassCastException` if the underlying connection was replaced between checking its type and casting it to `AtomicLong`, for example if `ChannelOperations#terminate()` was called on another thread. See also: https://github.com/reactor/reactor-netty/blob/667f8c9cbf5a227a15f6d0a2f3aab7c4777613da/reactor-netty-core/src/main/java/reactor/netty/channel/ChannelOperations.java#L515 Fixes #3541 Co-authored-by: Violeta Georgieva <milesg78@gmail.com>
Calling
HttpOperations#initShortId()
could cause aClassCastException
if the underlying connection was replaced between checking its type and casting it toAtomicLong
, for example ifChannelOperations#terminate()
was called on another thread.See also:
reactor-netty/reactor-netty-core/src/main/java/reactor/netty/channel/ChannelOperations.java
Line 515 in 667f8c9
Fixes #3541