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

aio-libs / aiopg / 494
8%

Build:
DEFAULT BRANCH: master
Ran 08 Sep 2016 12:52PM UTC
Jobs 11
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
494

push

travis-ci

asvetlov
Remove callbacks from a bad file descriptor immediately (#139)

* 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.

* Use contextlib.suppress for brevity

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

1227 of 1298 relevant lines covered (94.53%)

9.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
aiopg/connection.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
aiopg/connection.py
Jobs
ID Job ID Ran Files Coverage
1 494.1 (USE_SA=1 PYTHONASYNCIODEBUG=x) 08 Sep 2016 12:52PM UTC 0
86.83
Travis Job 494.1
2 494.2 (USE_SA=0 PYTHONASYNCIODEBUG=x) 08 Sep 2016 12:52PM UTC 0
86.83
Travis Job 494.2
3 494.3 (USE_SA=1 PYTHONASYNCIODEBUG=) 08 Sep 2016 12:52PM UTC 0
86.75
Travis Job 494.3
4 494.4 (USE_SA=0 PYTHONASYNCIODEBUG=) 08 Sep 2016 12:52PM UTC 0
86.75
Travis Job 494.4
5 494.5 (USE_SA=1 PYTHONASYNCIODEBUG=x) 08 Sep 2016 12:52PM UTC 0
88.75
Travis Job 494.5
6 494.6 (USE_SA=0 PYTHONASYNCIODEBUG=x) 08 Sep 2016 12:55PM UTC 0
88.75
Travis Job 494.6
7 494.7 (USE_SA=1 PYTHONASYNCIODEBUG=) 08 Sep 2016 12:55PM UTC 0
88.6
Travis Job 494.7
8 494.8 (USE_SA=0 PYTHONASYNCIODEBUG=) 08 Sep 2016 12:56PM UTC 0
88.6
Travis Job 494.8
9 494.9 (USE_SA=1 PYTHONASYNCIODEBUG=x) 08 Sep 2016 12:56PM UTC 0
94.07
Travis Job 494.9
10 494.10 (USE_SA=0 PYTHONASYNCIODEBUG=x) 08 Sep 2016 12:56PM UTC 0
94.07
Travis Job 494.10
11 494.11 (USE_SA=1 PYTHONASYNCIODEBUG=) 08 Sep 2016 12:58PM UTC 0
93.91
Travis Job 494.11
Source Files on build 494
  • Tree
  • List 0
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #494
  • 7df2e92c on github
  • Prev Build on master (#488)
  • Next Build on master (#817)
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