Implement TCP flow control

Description

CASSANDRA-15013 introduced backpressure on the channel using TCP flow control.

We should avoid writing to the socket when the data can't be flushed to the kernel buffer.

 

In Node.js, this means reading the result of socket.write() and in case is false, wait for the 'drain' event to fire before writing again.

Environment

None
Fixed

Assignee

Jorge Bay Gondra

Reporter

Jorge Bay Gondra

Reviewer

None

Fix versions

Labels

None

Components

None

PM Priority

None

Pull Request

None

Priority

Major
Configure