Skip to content
Discussion options

You must be logged in to vote

Answers to your backpressure questions

Question Answer
Is DROPPED always due to backpressure? Yes — in the current send() implementation, DROPPED is only returned when maxBackpressure is exceeded.
Are you guaranteed a .drain event after BACKPRESSURE? Not strictly guaranteed on every occurrence, but practically yes if data remains buffered — .drain fires from on_writable, and also whenever write()/uncork() reduces backpressure.
Can the first message be too big to send at all? No such special exception exists — even a large first message goes through the normal buffering path and returns BACKPRESSURE, not a hard failure.
Can you get DROPPED without a prior BACKPRESSURE? Yes — D…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@alexolog
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by alexolog
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants