tsSocket: avoid broken pipe signal, set SO_REUSEADDR