Reuse socket if need.
Fix connect error.