GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — 2.x: Fix refCount() connect/subscribe/cancel deadlock by akarnokd · Pull Request #5975 · ReactiveX/RxJava Conversation
Member
This PR fixes a deadlock issue with the The bug was discovered as the cause of a reported hang on the Google groups. The code has been developed in the extensions project where the operator has more features. The overloads supporting these features can be added in a separate enhancement PR.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
vanniktech
approved these changes
Collaborator
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. should be
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@ ## 2.x #5975 +/- ## =========================================== - Coverage 98.27% 98.2% -0.07% - Complexity 6019 6049 +30 =========================================== Files 656 656 Lines 44037 44074 +37 Branches 6100 6118 +18 =========================================== + Hits 43278 43285 +7 - Misses 224 246 +22 - Partials 535 543 +8
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/cc @davidmoten as you devised the previous |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
👍 Great to see that bit of locking removed. I actually had launched into a non-blocking rewrite of the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
looks good, but comment :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
|
|
||
| long c = conn.subscriberCount; | ||
| if (c == 0L && conn.timer != null) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
looks like this condition is only actual for resubscribeBeforeTimeout test
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's strange to see logic and tests for something that user cannot use in RxJava
As you mentioned in PR description, let's maybe expose additional time related refCount api or try to shrink unused code?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done: #5986.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.