folly::AsyncTransport::close

Close the transport.

Synopsis

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

virtual
void
close() = 0;

Description

This gracefully closes the transport, waiting for all pending write requests to complete before actually closing the underlying transport.

If a read callback is set, readEOF() will be called immediately. If there are outstanding write requests, the close will be delayed until all remaining writes have completed. No new writes may be started after close() has been called.