Adjust the AsyncSocket TestServer to work with Winsock
Adjust the AsyncSocket TestServer to work with Winsock

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

floxard/folly,rklabs/folly,charsyam/folly,facebook/folly,Orvid/folly,Orvid/folly,facebook/folly,floxard/folly,facebook/folly,charsyam/folly,facebook/folly,charsyam/folly,Orvid/folly,rklabs/folly,facebook/folly,rklabs/folly,floxard/folly,Orvid/folly,rklabs/folly,floxard/folly,floxard/folly,Orvid/folly,rklabs/folly,charsyam/folly