diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-13 20:06:13 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-13 20:06:13 -0800 |
| commit | eb860752e6c0a86131e39d648f0a64364408ab93 (patch) | |
| tree | 325fd7454da980414f62fa712f84ce2fa35f4ebc /weed/s3api/filer_multipart.go | |
| parent | 51c2ab0107ce8bc38d6d4f1d3ef3190d4be94161 (diff) | |
| download | seaweedfs-eb860752e6c0a86131e39d648f0a64364408ab93.tar.xz seaweedfs-eb860752e6c0a86131e39d648f0a64364408ab93.zip | |
fix: WaitUntilConnected now respects context cancellation during sleep (#7737)
The WaitUntilConnected function was not properly respecting context
cancellation when sleeping between attempts. The time.Sleep call would
block for up to 200ms even after the context was cancelled.
This fix uses select with time.After to immediately return when the
context is cancelled, rather than waiting for the sleep to complete.
This fixes flaky test behavior where the function would take ~200ms
to return instead of respecting the ~100ms context timeout.
Diffstat (limited to 'weed/s3api/filer_multipart.go')
0 files changed, 0 insertions, 0 deletions
