• Yedidya Feldblum's avatar
    ScopedBoundPort · 6ba2117b
    Yedidya Feldblum authored
    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
    6ba2117b
Makefile.am 12.8 KB