• Christopher Dykes's avatar
    Adjust the AsyncSocket TestServer to work with Winsock · 66c56cb8
    Christopher Dykes authored
    Summary:
    Winsock doesn't let you listen to a socket if it hasn't been bound to anything, so bind it to the port first.
    TestServer was also never closing the file descriptor, causing the socket to leak.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D3698467
    
    fbshipit-source-id: cca415143009fbee99ebf94d7f46aedc9c59191d
    66c56cb8
AsyncSocketTest.h 8.96 KB