-
Notifications
You must be signed in to change notification settings - Fork 481
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
HttpClient disposal anti-pattern #106
Comments
I have most of these tagged for looking at. Thanks for driving home that I need to fix them sooner rather than later. +1 |
I've made a start at this and for #107 on my fork. I've started on this for the QnAMaker and the Translator class. I have implemented the changes for the Translator and the QnA maker and I'm in the process of testing. |
Thanks Ryan! I was actually just reading about best practices around HttpClient and will look forward to seeing your PR. |
Just tested the QnA version! I'm about to setup Luis to make sure that is working too. |
Here you go! |
Pending PR for the remaining places this code existed: #133 |
Fixed. Thanks. |
* Remove unused formatter, remove duplicate response code set, remove unnecessary casts * Add Slack login correctly done * Fix id assignation in SendActivitiesAsync method (#107) * Add some minor stylecop corrections LoginWithSlack method temporarily waited to test * Fix minor stylecop warnings, fix response sending, remove unused inclusion, start partial implementation of previously unimplemented ChannelData message assignment, add property to NewSlackMessage class * Remove ChatPostEphemeralMessageResult and ChatPostMessageResult classes * Fix message.ThreadTS assignment and cast. Complete message ChannelData assignent. Some stylecop corrections * Add stylecop corrections, not taking into account parameter documentations * Change the return type of ActivityToSlack * Remove references to Middleware * Remove Middleware files * Fix thread_ts assignation * Add PR changes * Remove commented out lines * Add PR changes: commented out code removed, some dynamic casts removed * Remove all dynamics cast to slackEvent * Add more PR changes
There are several instances of the
HttpClient
disposal anti-pattern within the code base. Under a sufficient amount of load this will cause socket level resource exhaustion that will result in intermittent connection failures and, ultimately, prevent bots from scaling.The following classes are currently using this anti-pattern:
The text was updated successfully, but these errors were encountered: