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

daurnimator / lua-http / 390 / 1
88%
master: 88%

Build:
DEFAULT BRANCH: master
Ran 08 Dec 2016 07:32AM UTC
Files 23
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

08 Dec 2016 07:30AM UTC coverage: 84.809% (-0.04%) from 84.845%
LUA="lua 5.1"

push

travis-ci

daurnimator
http/h2_connection: Make sure h2_connection:close() actually closes the connection when called from inside the internal cqueue

The cqueues.poll() calls in h2_connection:close() meant that :close would yield to the current controller. If the current controller was the h2_connection's own cqueue, then nothing would happen until the next action was performed on the h2_connection.
As :close() is usually the *last* thing you do to the h2_connection object, this meant that the socket wouldn't be closed until the garbage collector got around to it.

This fix is to check for a 'close_me' flag upon exit from :step() or :loop() and do the :close() then.
We still need to call cqueues.poll() twice incase other cqueues were waiting on the file descriptor

4606 of 5431 relevant lines covered (84.81%)

221.22 hits per line

Source Files on job 390.1 (LUA="lua 5.1")
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 390
  • Travis Job 390.1
  • e5817afb on github
  • Prev Job for LUA="lua 5.1" on master (#389.1)
  • Next Job for LUA="lua 5.1" on master (#391.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