Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Issue #425: Fix hanging StreamingSubscriptionConnection.close() #496

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dconnelly
Copy link

StreamingSubscriptionConnection.close() calls HttpWebRequest.close() which first
attempts to consume the response before releasing the connection. This unfortunately
will hang since the notification reader thread is still blocked reading from the same
connection. The fix is to just the connection without consuming the response entity.

StreamingSubscriptionConnection.close() calls HttpWebRequest.close() which will first
attempts to consume the response before releasing the connection. This unfortunately
will hang since the notification reader thread is still blocked reading from the same
connection. The fix is to just the connection without consuming the response entity.
@codecov-io
Copy link

Current coverage is 10.42%

Merging #496 into master will not affect coverage as of 1d8f419

@@            master    #496   diff @@
======================================
  Files          550     550       
  Stmts        20432   20440     +8
  Branches      2625    2630     +5
  Methods          0       0       
======================================
  Hit           2131    2131       
  Partial        153     153       
- Missed       18148   18156     +8

Review entire Coverage Diff as of 1d8f419

Powered by Codecov. Updated on successful CI builds.

} finally {
IOUtils.closeQuietly(responseCopy);
}
}

private static boolean isSocketClosed(Throwable e) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this about getting smth like the rootcause?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants