folly::AsyncTransport::setSendTimeout

Set the send timeout.

Synopsis

Declared in <folly/io/async/AsyncTransport.h>

virtual
void
setSendTimeout(uint32_t milliseconds) = 0;

Description

If write requests do not make any progress for more than the specified number of milliseconds, fail all pending writes and close the transport.

If write requests are currently pending when setSendTimeout() is called, the timeout interval is immediately restarted using the new value.

Parameters

NameDescription
millisecondsThe timeout duration, in milliseconds. If 0, no timeout will be used.