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

warner / foolscap
93%
master: 89%

Build:
Build:
LAST BUILD BRANCH: new-twisted
DEFAULT BRANCH: master
Repo Added 06 Feb 2015 10:17PM UTC
Files 64
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

LAST BUILD ON BRANCH 258-allocate-port
branch: 258-allocate-port
CHANGE BRANCH
x
Reset
  • 258-allocate-port
  • 267-connectioninfo
  • 270-tor-cep-maker
  • WIP-allocate-port
  • WIP-tor
  • endpoints
  • endpoints2
  • fix-tests
  • fix-travis
  • foolscap-0.10.0
  • foolscap-0.10.1
  • foolscap-0.12.2
  • foolscap-0.12.3
  • foolscap-0.12.4
  • foolscap-0.12.5
  • foolscap-0.8.0
  • latest-release
  • logtest
  • master
  • new-twisted
  • no-auto
  • pr28
  • remove-tcp0
  • server-endpoint
  • stopservice
  • stopservice-tests
  • tor-no-mkdir
  • tox-dev

pending completion
215

push

travis-ci

warner
fix allocate_tcp_port()

On both OS-X and Linux, this would occasionally return a port which was
actually in use, causing a subsequent listen() to fail (with
EADDRINUSE). The issues are are platform-dependent, and explained in
detail in the new function body.

The fix requires us to actually listen() on the newly-allocated socket,
twice, and keep trying until we get a port that works. There is a
hard-coded limit of 100 tries, in case the system has so many open
connections that all the randomly-allocated port numbers fail.

15969 of 17240 relevant lines covered (92.63%)

0.93 hits per line

Relevant lines Covered
Build:
Build:
17240 RELEVANT LINES 15969 COVERED LINES
0.93 HITS PER LINE
Source Files on 258-allocate-port
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
215 258-allocate-port fix allocate_tcp_port() On both OS-X and Linux, this would occasionally return a port which was actually in use, causing a subsequent listen() to fail (with EADDRINUSE). The issues are are platform-dependent, and explained in detail in the new fu... push 01 Jul 2016 01:21AM UTC warner travis-ci pending completion  
See All Builds (205)
  • Repo on GitHub
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

© 2025 Coveralls, Inc