mirror of
https://github.com/nspcc-dev/neofs-sdk-go.git
synced 2026-03-01 04:29:18 +00:00
client: Prohibit empty chunk responses for GET/RANGE/SEARCH #248
Labels
No labels
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U2
U2
U3
U4
blocked
bug
client
config
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
pool
question
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-sdk-go#248
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cthulhu-rider on GitHub (Dec 6, 2024).
Is your feature request related to a problem? Please describe.
currently,
Clientdoes 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
Clientwill 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
Clienttesting