client: Prohibit empty chunk responses for GET/RANGE/SEARCH #248

Open
opened 2025-12-28 18:07:34 +00:00 by sami · 0 comments
Owner

Originally created by @cthulhu-rider on GitHub (Dec 6, 2024).

currently, Client does not consider empty chunk responses (*) with OK status invalid. At the same time, now this can only signal a buggy server: an empty message loads the network, + cryptography, and carries nothing. Being transmitted, they are silently reducing system performance

(*) note that SEARCH stream with a single empty message is valid cuz it means not found

if server will start spamming empty chunks for whatever reason, the Client will hang doing a lot of useless work. The only savior will be the context deadline (if set)

Describe the solution you'd like

prohibit empty data chunks, react with corresponding error

Describe alternatives you've considered

try to find potential benefits in them. I see no

Additional context

Client testing

Originally created by @cthulhu-rider on GitHub (Dec 6, 2024). ## Is your feature request related to a problem? Please describe. currently, `Client` does not consider empty chunk responses (*) with OK status invalid. At the same time, now this can only signal a buggy server: an empty message loads the network, + cryptography, and carries nothing. Being transmitted, they are silently reducing system performance (*) note that SEARCH stream with a single empty message is valid cuz it means _not found_ if server will start spamming empty chunks for whatever reason, the `Client` will hang doing a lot of useless work. The only savior will be the context deadline (if set) ## Describe the solution you'd like prohibit empty data chunks, react with corresponding error ## Describe alternatives you've considered try to find potential benefits in them. I see no ## Additional context `Client` testing
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-sdk-go#248
No description provided.