-
Notifications
You must be signed in to change notification settings - Fork 121
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
Reuse TCP connections #149
Conversation
b725454
to
6b203ad
Compare
6b203ad
to
bf5788d
Compare
lib/segment/analytics/request.rb
Outdated
# If `start` is not called, Ruby adds a 'Connection: close' header | ||
# too all requests, preventing us from reusing a connection for multiple | ||
# HTTP requests | ||
@http.start unless @http.started? |
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.
I added this comment because it took me a while to figure this out, and the Ruby docs don't mention it explicitly.
I'll also try raising this on the Ruby issue tracker once I've experimented a bit.
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.
Reported upstream: https://bugs.ruby-lang.org/issues/14349
bf5788d
to
94179b8
Compare
Codecov Report
@@ Coverage Diff @@
## master #149 +/- ##
==========================================
+ Coverage 98.38% 98.39% +<.01%
==========================================
Files 9 9
Lines 371 373 +2
==========================================
+ Hits 365 367 +2
Misses 6 6
Continue to review full report at Codecov.
|
Fixes #148.