Lesson 10.4
Backpressure to the wire, and the auto-drain
Wire the Readable's backpressure verdict to socket.pause / socket.resume so a slow consumer reduces incoming socket reads, and auto-drain an unconsumed body so pipelined requests survive.
What you will build
- Explain how a full Readable buffer reduces incoming socket reads through socket.pause.
- Route incoming bytes to the body pump and resume the socket when the consumer pulls.
- Auto-drain an unconsumed body before framing the next pipelined message.