From df9031e19a96a97f12613d7b4c90eb19b265d311 Mon Sep 17 00:00:00 2001 From: Nikita Borzykh Date: Tue, 2 Apr 2024 01:55:16 +0300 Subject: [PATCH] fix: ensure complete gRPC stream consumption in doListFilerEntries to prevent context canceled errors. (#5441) --- weed/s3api/s3api_objects_list_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/s3api/s3api_objects_list_handlers.go b/weed/s3api/s3api_objects_list_handlers.go index f332da856..b00e4630d 100644 --- a/weed/s3api/s3api_objects_list_handlers.go +++ b/weed/s3api/s3api_objects_list_handlers.go @@ -374,7 +374,7 @@ func (s3a *S3ApiServer) doListFilerEntries(client filer_pb.SeaweedFilerClient, d } if cursor.maxKeys <= 0 { cursor.isTruncated = true - return + continue } entry := resp.Entry nextMarker = entry.Name