-
Notifications
You must be signed in to change notification settings - Fork 6
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
refactor: reuse okhttp instance #2065
Conversation
} | ||
} | ||
|
||
fun OkHttpClient.Builder.ignoreAllSSLErrors(): OkHttpClient.Builder { |
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.
this function was creating a new builder while it was not used
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.
good catch !
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed Test Services
|
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.
From what I can see it look alright.
// OkHttp doesn't support configuring ping intervals dynamically, | ||
// so they must be set when creating the Engine | ||
// See https://youtrack.jetbrains.com/issue/KTOR-4752 |
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.
Hasn't this comment lost its context? Shouldn't it be where the pingInternval
is configured.
Codecov Report
@@ Coverage Diff @@
## develop #2065 +/- ##
==========================================
Coverage 57.99% 57.99%
Complexity 24 24
==========================================
Files 1007 1007
Lines 37783 37783
Branches 3430 3430
==========================================
+ Hits 21911 21912 +1
Misses 14404 14404
+ Partials 1468 1467 -1 see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
🍇 👌
} | ||
} | ||
|
||
fun OkHttpClient.Builder.ignoreAllSSLErrors(): OkHttpClient.Builder { |
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.
good catch !
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
as explained in docs okHttp client must be shared across app sessions, to reduce memory footprint and improve latency
Solutions
we already share Http engine per user session so now we share it per app
Needs releases with:
Testing
Test Coverage (Optional)
How to Test
Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.
Notes (Optional)
Specify here any other facts that you think are important for this issue.
Attachments (Optional)
Attachments like images, videos, etc. (drag and drop in the text box)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.