Perform a half‐shutdown of the write side of the transport.
Synopsis
Declared in <folly/io/async/AsyncTransport.h>
virtual
void
shutdownWrite() = 0;
Description
The caller should not make any more calls to write() or writev() after shutdownWrite() is called. Any future write attempts will fail immediately.
Not all transport types support half‐shutdown. If the underlying transport does not support half‐shutdown, it will fully shutdown both the read and write sides of the transport. (Fully shutting down the socket is better than doing nothing at all, since the caller may rely on the shutdownWrite() call to notify the other end of the connection that no more data can be read.)
If there is pending data still waiting to be written on the transport, the actual shutdown will be delayed until the pending data has been written.
Note: There is no corresponding shutdownRead() equivalent. Simply uninstall the read callback if you wish to stop reading. (On TCP sockets at least, shutting down the read side of the socket is a no‐op anyway.)
Created with MrDocs