Skip to content

sync v3 into branch main#1107

Merged
jeevatkm merged 66 commits intomainfrom
v3
Jan 27, 2026
Merged

sync v3 into branch main#1107
jeevatkm merged 66 commits intomainfrom
v3

Conversation

@jeevatkm
Copy link
Member

No description provided.

jeevatkm and others added 30 commits January 2, 2025 19:38
- refactor root cert and client root methods to make consistent signature
- refactor retry conditions and hooks into accepting multiple values
- its preparation for upcoming debug log formatter
Co-authored-by: gtwn <tawan.s@arise.tech>
…eck (#989)

Co-authored-by: xiyuliu <xiyuliu@bytedance.com>
Co-authored-by: xiyuliu <xiyuliu@bytedance.com>
Co-authored-by: Jeevanandam M. <jeeva@myjeeva.com>
… in SSE (#1010)

Change the retry duration from seconds to milliseconds for proper handling of client-specified retry intervals. This ensures compatibility with standard SSE behavior and prevents potential timeout issues.
- https://html.spec.whatwg.org/multipage/server-sent-events.html#concept-event-stream-reconnection-time
- https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#retry
…#1011)

* sse: introduce a sync pool for `rawEvent` to optimize memory usage.

* fix deferred resource cleanup in event parsing

Move the `defer putRawEvent(ed)` call after error handling to ensure resources are properly released only when parsing succeeds. This prevents potential resource leaks when errors occur during event parsing.
Co-authored-by: hechenglong <hechl@chinatelecom.cn>
Co-authored-by: Jack <jackcipehr.vip@gmail.com>
jeevatkm and others added 24 commits December 13, 2025 14:29
…ker (#1088)

* refactor: replace atomic counters with sliding window in circuit breaker

Improves time-based failure tracking accuracy by using a sliding window with progressive bucket rotation instead of atomic counters with instant resets. Provides better thread-safety, eliminates race conditions, and ensures consistent behavior across count-based and ratio-based modes.

* test: add SetInterval coverage for sliding window

Adds test case for SetInterval method to achieve 100% test coverage on circuit breaker sliding window implementation.

Co-authored-by: goodliu <liuzengh@qq.com>
…rs, and path parameters. (#1098)

* Add support for `SetXXXAny` methods to simplify handling various data types in headers, query parameters, and path parameters.

* Add benchmarks for `formatAnyToString` covering various data types.
…g endpoints (#1081)

* feat(hedging): support hedging in order to reduce latency when quering endpoints

Signed-off-by: Ahmet DEMIR <me@ahmet2mir.eu>

* fix(hedging): move fields to struct, remove ratelimit, fail on sethedging func if not enabled, restore retry, allow unsafe funcs

Signed-off-by: Ahmet DEMIR <me@ahmet2mir.eu>

* fix(hedging): adapt suggestions

Signed-off-by: Ahmet DEMIR <me@ahmet2mir.eu>

---------

Signed-off-by: Ahmet DEMIR <me@ahmet2mir.eu>
Signed-off-by: Ahmet DEMIR <me@ahmet2mir.eu>
@jeevatkm jeevatkm self-assigned this Jan 27, 2026
@jeevatkm jeevatkm added the v3 For resty v3 label Jan 27, 2026
@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

❌ Patch coverage is 99.58333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.86%. Comparing base (b4ff634) to head (52d6c14).

Files with missing lines Patch % Lines
middleware.go 95.34% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1107      +/-   ##
==========================================
+ Coverage   99.76%   99.86%   +0.10%     
==========================================
  Files          17       19       +2     
  Lines        3787     3821      +34     
==========================================
+ Hits         3778     3816      +38     
+ Misses          7        3       -4     
  Partials        2        2              
Flag Coverage Δ
unittests 99.86% <99.58%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeevatkm jeevatkm merged commit ad338ba into main Jan 27, 2026
8 of 11 checks passed
@jeevatkm jeevatkm removed the v3 For resty v3 label Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.