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

aio-libs / aiopg / 494 / 2
8%
master: 8%

Build:
DEFAULT BRANCH: master
Ran 08 Sep 2016 12:52PM UTC
Files 12
Run time 0s
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

08 Sep 2016 12:48PM UTC coverage: 86.826% (-7.4%) from 94.246%
USE_SA=0 PYTHONASYNCIODEBUG=x

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

1127 of 1298 relevant lines covered (86.83%)

0.87 hits per line

Source Files on job 494.2 (USE_SA=0 PYTHONASYNCIODEBUG=x)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 494
  • Travis Job 494.2
  • 7df2e92c on github
  • Prev Job for USE_SA=0 PYTHONASYNCIODEBUG=x on master (#488.10)
  • Next Job for PYTHONASYNCIODEBUG=x on master (#817.1)
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