How to ping faster when I reach unreachable IP?

前端 未结 5 1395
抹茶落季
抹茶落季 2020-12-16 22:15

I have an app which pings IP or IP range. The problem is that when hosts are closed it takes longer to ping than they are open. When host is closed the time to ping is about

5条回答
  •  情深已故
    2020-12-16 22:54

    Not sure if this is any help (see final post on the thread), it seems an almost identical problem. What you're butting up against there is the protocol stack's timeout. You can get around it if you use socket to connect as you'll have more control.

提交回复
热议问题