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

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

Open
David Connelly (dconnelly) wants to merge 2 commits into
OfficeDev:masterfrom
slack-migrations:issue-495
Open

Issue #425: Fix hanging StreamingSubscriptionConnection.close()#496
David Connelly (dconnelly) wants to merge 2 commits into
OfficeDev:masterfrom
slack-migrations:issue-495

Conversation

@dconnelly

Copy link
Copy Markdown

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
Copy Markdown

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.

}
}

private static boolean isSocketClosed(Throwable e) {

Copy link
Copy Markdown
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 freeto 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

@dconnelly@codecov-io@serious6@azurecla@msftgits