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

enetx / surf / 21510756790 / 1
83%
main: 83%

Build:
DEFAULT BRANCH: main
Ran 30 Jan 2026 09:22AM UTC
Files 33
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

30 Jan 2026 09:19AM UTC coverage: 81.276% (-2.7%) from 83.943%
21510756790.1

push

github

enetx
feat(core): improve context cancellation support and error handling

Major changes:

Body:
- All read methods (Bytes, String, UTF8) now return g.Result for explicit error handling
- Reworked cancellation mechanism via context: uses SetReadDeadline instead of select in Read()
- Added race condition protection via sync.Once (readOnce, closeOnce, setupOnce)
- Optimized Close(): limited drain to 256KB, skip draining on cancelled context
- Stream() now returns StreamReader with Close() method for automatic resource cleanup

Proxy (connectproxy):
- Renamed DialTLS to DialTLSContext to support cancellation in TLS handshake
- Added context cancellation support in HTTP/1.1 CONNECT via SetDeadline
- Improved HTTP/2 connection reuse: reset connections on errors
- Protected http2.Transport (tr2) with sync.Once against race conditions
- Added SetResolver for custom DNS resolvers
- Improved resource cleanup on HTTP/2 CONNECT errors
- Use errors.Join to combine multiple errors

SOCKS4:
- Implemented DialContext to support context cancellation
- Added deadline setting from context
- Migrated DNS lookup to context-aware resolver.LookupIPAddr
- Pass context to underlying dialer when supported

Other:
- HTTP/2 cleartext (h2c) now uses DialContext instead of Dial
- Debug correctly handles Result types from Body.String()

These changes ensure proper operation cancellation via context,
explicit error handling, and protection against race conditions.

3095 of 3808 relevant lines covered (81.28%)

73.69 hits per line

Source Files on job 21510756790.1
  • Tree
  • List 33
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21510756790
  • bc1c7ead on github
  • Prev Job for on main (#21456663373.1)
  • Next Job for on main (#21516979359.1)
  • Delete
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