Commit 09417cff authored by Woo Xie's avatar Woo Xie Committed by facebook-github-bot-4

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
parent 2bebe62f
......@@ -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,
};
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment