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

aio-libs / aiopg / 492
8%

Build:
DEFAULT BRANCH: master
Ran 05 Sep 2016 01:03PM UTC
Jobs 12
Files 12
Run time 6min
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
492

Pull #139

travis-ci

web-flow
Remove callbacks from a bad file descriptor immediately

Previously, the callback removal was postponed until .close() call, and
sometimes this .close() call cleared a file descriptor from a callback set
by another connection object (if the file desriptor was closed by psycopg2 when
an error occurred, and then opened again for a new connection).

The effect of this was, when making tens of parallel connections, an error in
one of them made another time out.

Now, if a psycopg2 error occurs, and the file descriptor has gone bad, the
callback is removed immediately, and the aiopg connection object 'forgets'
about this file descriptor (self._fileno = None), and doesn't try to remove
callbacks in .close().

If there were no errors, callbacks are still removed during .close() call.
Pull Request #139: Remove callbacks from a bad file descriptor immediately

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

1229 of 1300 relevant lines covered (94.54%)

10.78 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
8
100.0
aiopg/connection.py
Jobs
ID Job ID Ran Files Coverage
1 492.1 (USE_SA=1 PYTHONASYNCIODEBUG=x) 05 Sep 2016 01:04PM UTC 0
86.92
Travis Job 492.1
2 492.2 (USE_SA=0 PYTHONASYNCIODEBUG=x) 05 Sep 2016 01:04PM UTC 0
86.92
Travis Job 492.2
3 492.3 (USE_SA=1 PYTHONASYNCIODEBUG=) 05 Sep 2016 01:03PM UTC 0
86.85
Travis Job 492.3
4 492.4 (USE_SA=0 PYTHONASYNCIODEBUG=) 05 Sep 2016 01:04PM UTC 0
86.85
Travis Job 492.4
5 492.5 (USE_SA=1 PYTHONASYNCIODEBUG=x) 05 Sep 2016 01:06PM UTC 0
88.77
Travis Job 492.5
6 492.6 (USE_SA=0 PYTHONASYNCIODEBUG=x) 05 Sep 2016 01:08PM UTC 0
88.77
Travis Job 492.6
7 492.7 (USE_SA=1 PYTHONASYNCIODEBUG=) 05 Sep 2016 01:07PM UTC 0
88.62
Travis Job 492.7
8 492.8 (USE_SA=0 PYTHONASYNCIODEBUG=) 05 Sep 2016 01:07PM UTC 0
88.62
Travis Job 492.8
9 492.9 (USE_SA=1 PYTHONASYNCIODEBUG=x) 05 Sep 2016 01:08PM UTC 0
94.08
Travis Job 492.9
10 492.10 (USE_SA=0 PYTHONASYNCIODEBUG=x) 05 Sep 2016 01:10PM UTC 0
94.08
Travis Job 492.10
11 492.11 (USE_SA=1 PYTHONASYNCIODEBUG=) 05 Sep 2016 01:10PM UTC 0
93.92
Travis Job 492.11
12 492.12 (USE_SA=0 PYTHONASYNCIODEBUG=) 05 Sep 2016 01:10PM UTC 0
93.92
Travis Job 492.12
Source Files on build 492
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #492
  • Pull Request #139
  • PR Base - master (#488)
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