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

adhearsion / punchblock / 1141
99%
develop: 98%

Build:
Build:
LAST BUILD BRANCH: freeswitch
DEFAULT BRANCH: develop
Ran 27 Aug 2015 07:46PM UTC
Jobs 4
Files 135
Run time 7min
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
1141

push

travis-ci

benlangfeld
Avoid races in processing Asterisk 13 bridges

On Asterisk 13, BridgeEnter and BridgeLeave events do not include the opposite-channel ID, leaving us to track this using the sequential events. When processed by the Call object, these must call back out to the translator to store global state to correlate. In previous releases of Punchblock, this has encountered a race condition because the translator is accessed via its ActorProxy, raising the possibility of the second event being processed before the first is done.

A previous attempt to fix this was https://github.com/adhearsion/punchblock/commit/14f6e760a, released in 2.7.4, but this resulted in a suspected memory leak and crashing under heavy load in one example application. This first attempt was rolled back and the release yanked. This second attempt eliminates the issue by other means, that is moving the correlation up into the translator itself, passing the correlated data down to the call itself.

23 of 23 new or added lines in 2 files covered. (100.0%)

12255 of 12366 relevant lines covered (99.1%)

396.12 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
lib/punchblock/translator/asterisk/component/output.rb
Jobs
ID Job ID Ran Files Coverage
1 1141.1 (1.9.3) 27 Aug 2015 07:46PM UTC 0
99.09
Travis Job 1141.1
2 1141.2 (2.0.0) 27 Aug 2015 07:47PM UTC 0
99.1
Travis Job 1141.2
3 1141.3 (2.1.0) 27 Aug 2015 07:46PM UTC 0
99.09
Travis Job 1141.3
6 1141.6 (ruby-head) 27 Aug 2015 07:53PM UTC 0
99.09
Travis Job 1141.6
Source Files on build 1141
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1141
  • fa062c68 on github
  • Prev Build on hotfix/2.7.5 (#1138)
  • Next Build on hotfix/2.7.5 (#1143)
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