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

amphp / sql-common / 32
39%

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

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

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

113 of 288 relevant lines covered (39.24%)

3.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32.1 (AMP_DEBUG=true) 09 Nov 2020 11:09PM UTC 0
31.48
Travis Job 32.1
2 32.2 (AMP_DEBUG=true) 09 Nov 2020 11:09PM UTC 0
31.48
Travis Job 32.2
3 32.3 (AMP_DEBUG=true) 09 Nov 2020 11:09PM UTC 0
31.65
Travis Job 32.3
4 32.4 (AMP_DEBUG=true) 09 Nov 2020 11:09PM UTC 0
38.51
Travis Job 32.4
5 32.5 (AMP_DEBUG=true) 09 Nov 2020 11:09PM UTC 0
38.51
Travis Job 32.5
Source Files on build 32
  • Tree
  • List 6
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #32
  • c6823133 on github
  • Prev Build on master (#16)
  • Next Build on master (#34)
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