1. 程式人生 > >如何設定connect超時時間

如何設定connect超時時間

Sometimes, the connect time-out can take too much time when the target is unavailable. To resolve this issue, we can use non-blocking socket mode to select the timeout.