Set the send timeout.
Declared in <folly/io/async/AsyncTransport.h>
virtual
void
setSendTimeout(uint32_t milliseconds) = 0;
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.
| Name | Description |
|---|---|
| milliseconds | The timeout duration, in milliseconds. If 0, no timeout will be used. |