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

libevent / libevent / 33260573040
81%

Build:
DEFAULT BRANCH: master
Ran 29 Aug 2026 03:41PM UTC
Jobs 1
Files 35
Run time 1min
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

29 Aug 2026 03:33PM UTC coverage: 81.196% (-0.02%) from 81.218%
33260573040

push

github

azat
ws: free the connection on BEV_EVENT_ERROR, not only BEV_EVENT_EOF

ws_evhttp_error_cb() only freed the evws_connection on BEV_EVENT_EOF, so an
abrupt peer reset or a failed write (BEV_EVENT_ERROR, e.g. ECONNRESET/EPIPE)
never reached evws_connection_free(). As a result the user close callback
registered via evws_connection_set_closecb() was never invoked, and the
connection and its bufferevent leaked.

This shows up with a client that resets right after the upgrade, before
sending a WebSocket close frame -- a browser tab closed without a clean
close, a flaky-network RST, or `curl ... | head -1` getting SIGPIPE'd on the
first server write. A fraction of such connections were left un-freed.

Handle BEV_EVENT_ERROR by freeing the session immediately, mirroring
close_event_cb(). The BEV_EVENT_EOF path is unchanged, so pending output is
still flushed on a graceful close.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

0 of 2 new or added lines in 1 file covered. (0.0%)

4 existing lines in 3 files now uncovered.

13023 of 16039 relevant lines covered (81.2%)

809290.18 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
77.64
-0.64% ws.c

Coverage Regressions

Lines Coverage ∆ File
2
86.42
-0.11% event.c
1
74.11
-0.51% evthread.c
1
75.82
-1.1% evthread_pthread.c
Jobs
ID Job ID Ran Files Coverage
1 33260573040.1 29 Aug 2026 03:41PM UTC 35
81.2
GitHub Action Run
Source Files on build 33260573040
  • Tree
  • List 35
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33260573040
  • 868bfb85 on github
  • Prev Build on master (#33252862159)
  • Next Build on master (#33278922627)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc