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

amphp / sql-common / 32 / 5
39%
master: 39%

Build:
DEFAULT BRANCH: master
Ran 09 Nov 2020 11:09PM UTC
Files 6
Run time 1s
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

09 Nov 2020 11:08PM UTC coverage: 38.511% (+7.0%) from 31.476%
AMP_DEBUG=true

push

travis-ci-com

web-flow
Connection pool pop() or push() should modify to release idle connection. (#3)

In source code, the pop() method invoke idle->shift() to get top of pool list connection to use, and push return it back to the bottom of list.

In timeoutWatcher first check bottom of the list connection, if not idle will do nothing.

If connection pool has expanded at peak, when the traffic drops back to a low peak, as long as there is one query in each idle time, all connection will never released!!! but only one or two connection is enough now.

So I think idle->push() should change to idle->unshift(), then real idle connection in bottom will be released in time, or timeoutWatcher check top, and pop() change to real idle->pop().

See also https://github.com/amphp/mysql/issues/99

119 of 309 relevant lines covered (38.51%)

0.67 hits per line

Source Files on job 32.5 (AMP_DEBUG=true)
  • Tree
  • List 0
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20
  • Travis Job 32.5
  • c6823133 on github
  • Prev Job for AMP_DEBUG=true on master (#16.1)
  • Next Job for AMP_DEBUG=true on master (#34.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