From 09417cff863744a9e1aed90d243ceae8bda3cd3b Mon Sep 17 00:00:00 2001 From: Woo Xie Date: Mon, 12 Oct 2015 15:48:56 -0700 Subject: [PATCH] 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 --- folly/io/async/AsyncTransport.h | 4 ++++ 1 file changed, 4 insertions(+) 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, }; /* -- 2.34.1