Fix up TSocket Exception handling
Fix up TSocket Exception handling

Summary:
Fixed up exception handling with TSocketBase.
Added assert that port is always an int

Reviewed By: ngie-eign

Differential Revision: D6599248

fbshipit-source-id: 239946b04565bf130338f7ab97bc0c6df39bb4a6

facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift