• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sferik / twitter / 1693
99%
master: 3%

Build:
Build:
LAST BUILD BRANCH: patch-2
DEFAULT BRANCH: master
Ran 08 Nov 2017 09:26PM UTC
Jobs 7
Files 87
Run time 17min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1693

push

travis-ci

sferik
[6-stable] Add TCP keepalive in Twitter::Streaming::Connection (#856)

* Add TCP keepalive in Twitter::Streaming::Connection

Without correct TCP keepalive setup, the Twitter streaming client is
prone to hang on long-lived connections. This is due to the nature of
the protocol: a single request is made, then the client simply waits for
data to read on a socket. Without keepalive, it may be indistinguishable
to the client whether the connection has failed or there is simply no
data to read.

These changes add the ability to set TCP keepalive providing the OS
supports it. They also provide a set of sensible defaults to the
keepalive for this implementation, while disabled by default.

* Add tests around keepalive setup

13 of 13 new or added lines in 1 file covered. (100.0%)

2063 of 2075 relevant lines covered (99.42%)

215.01 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
lib/twitter/streaming/connection.rb
Jobs
ID Job ID Ran Files Coverage
1 1693.1 (2.0.0) 08 Nov 2017 09:27PM UTC 0
99.56
Travis Job 1693.1
2 1693.2 (2.1) 08 Nov 2017 09:26PM UTC 0
99.56
Travis Job 1693.2
3 1693.3 (2.2) 08 Nov 2017 09:26PM UTC 0
99.56
Travis Job 1693.3
4 1693.4 (2.3.3) 08 Nov 2017 09:27PM UTC 0
99.56
Travis Job 1693.4
5 1693.5 (jruby-9.1.6.0) 08 Nov 2017 09:30PM UTC 0
99.56
Travis Job 1693.5
6 1693.6 (jruby-head) 08 Nov 2017 09:43PM UTC 0
99.17
Travis Job 1693.6
8 1693.8 (ruby-head) 08 Nov 2017 09:29PM UTC 0
99.56
Travis Job 1693.8
Source Files on build 1693
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1693
  • d9cde55a on github
  • Prev Build on 6-stable (#1690)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc