Backpressure questions #1934
|
Hello, If I get a DROPPED return code, is it always due to backpressure? |
Replies: 3 comments 1 reply
|
Yes you get DROPPED because of backpressure but only if your settings (closeOnBackpressure = false, maxBackpressure = some number) require it. .drain is not necessarily a guarantee, it simply emits whenever the backpressure has reduced or stayed the same. You're not necessarily guaranteed to get .drain for instance if the receiver refuses to ACK the data, you will never drain but you will still gain backpressure. So treat them as two separate things.
I don't remember but logically it should be "yes". Don't assume anything. DROPPED can come from nowhere. |
Answers to your backpressure questions
Details
|
|
Thank you! |
Answers to your backpressure questions
DROPPEDalways due to backpressure?send()implementation,DROPPEDis only returned whenmaxBackpressureis exceeded..drainevent afterBACKPRESSURE?.drainfires fromon_writable, and also wheneverwrite()/uncork()reduces backpressure.BACKPRESSURE, not a hard failure.DROPPEDwithout a priorBACKPRESSURE?D…