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

uber / tchannel-go / 1970
87%
dev: 88%

Build:
Build:
LAST BUILD BRANCH: delayed_frame_alloc
DEFAULT BRANCH: dev
Ran 31 May 2016 06:20PM UTC
Jobs 2
Files 42
Run time 1min
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
1970

push

travis-ci

prashantv
Fix races caused by closing sendCh

We have multiple goroutines possibly writing to sendCh, so closing
sendCh causes races unless we add a ton of synchronization between
the goroutines.

In the relay path, we really don't want to add synchronization overhead
for every frame we're handling. The much simpler option is to avoid
closing sendCh, and instead use a separate channel to signal that the
writeFrames goroutine to end. The sendCh will be cleaned up by the
GC automatically when there's no references left to the channel.

It's possible to simplify (and reduce synchronization) in the standard
call path after this change, which can be done separately if we get a
performance benefit. Since the standard call path does much more than
the relay path, it is likely not going to affect performance as much.

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

3748 of 4317 relevant lines covered (86.82%)

5316.9 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
outbound.go
2
100.0
root_peer_list.go
7
100.0
channel.go
8
100.0
relay.go
9
100.0
mex.go
11
100.0
peer.go
49
100.0
connection.go
Jobs
ID Job ID Ran Files Coverage
3 1970.3 (TEST_TIMEOUT_SCALE=20) 31 May 2016 06:20PM UTC 0
85.53
Travis Job 1970.3
4 1970.4 (TEST_TIMEOUT_SCALE=20) 31 May 2016 06:22PM UTC 0
86.45
Travis Job 1970.4
Source Files on build 1970
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1970
  • 93ef5c11 on github
  • Prev Build on relay_race_timeout (#1967)
  • Next Build on relay_race_timeout (#1975)
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