Trying to connect with socket allowHalfOpen to true