move shutdown socket set
authorDave Watson <davejwatson@fb.com>
Fri, 3 Oct 2014 19:05:37 +0000 (12:05 -0700)
committerdcsommer <dcsommer@fb.com>
Fri, 17 Oct 2014 18:44:29 +0000 (11:44 -0700)
commit71431a937ae36f689b87d17e2f466d7e703b4174
treec2a903cc4db9b06c6af9c4b8b46d1a8702d69108
parentd28152cd020746c61a5972468a4c38f51266a307
move shutdown socket set

Summary:
Move shutdownsocketset to folly, since it is a dep of the asyncsockets

Previoulsy tried moving it in to the server directly: D1583629, but had issues - close(fd) is called before the error callback, so we can't remove the fd before the close, which is essential to it working properly.

Just move it to folly instead.

Test Plan: fbconfig -r thrift/lib/cpp thrift/lib/cpp2; fbmake runtests

Reviewed By: dcsommer@fb.com

Subscribers: mshneer, trunkagent, fugalh, jsedgwick, doug, alandau, bmatheny, njormrod

FB internal diff: D1594950
folly/Makefile.am
folly/io/ShutdownSocketSet.cpp [new file with mode: 0644]
folly/io/ShutdownSocketSet.h [new file with mode: 0644]