From: Woo Xie Date: Mon, 12 Oct 2015 22:48:56 +0000 (-0700) Subject: add shutdownWrite to wangle for closing socket write only X-Git-Tag: deprecate-dynamic-initializer~340 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=09417cff863744a9e1aed90d243ceae8bda3cd3b;p=folly.git add shutdownWrite to wangle for closing socket write only Summary: current wangle has no way to close socket write side. writeFlags is extended so that wangle/AsyncSocketHandler can distinguish closeNow(), closeWithReset() and shutdownWrite() Reviewed By: @viswanathgs Differential Revision: D2522056 fb-gh-sync-id: 60616176d78311a4a09f9761a6ccda01dd502a88 --- diff --git a/folly/io/async/AsyncTransport.h b/folly/io/async/AsyncTransport.h index 3086958b..ee8e8ea6 100644 --- a/folly/io/async/AsyncTransport.h +++ b/folly/io/async/AsyncTransport.h @@ -56,6 +56,10 @@ enum class WriteFlags : uint32_t { * will be acknowledged. */ EOR = 0x02, + /* + * this indicates that only the write side of socket should be shutdown + */ + WRITE_SHUTDOWN = 0x04, }; /*