ScopedBoundPort
Summary: [Folly] `ScopedBoundPort`. An RAII class for `bind`ing, but not `listen`ing, an ephemral port. Useful when there is a need to test server-down cases - in such cases, a guaranteed-not-listening port is required. Extracted from a unit-test in Thrift; switches the Thrift test to use this extracted implementation instead. Reviewed By: djwatson Differential Revision: D3714293 fbshipit-source-id: 649fba1a0b7f0519b8297a3183d03c5dde23ddc6
Showing
Please register or sign in to comment