Java socket connection - how to set a timeout when connecting server restarts

前端 未结 0 2072
终归单人心
终归单人心 2020-11-21 04:25

I have a Java socket connection established with a server A. Server A randomly restarts during the day and my Java socket connection infinitely waits because it thinks that

相关标签:
回答
  • 消灭零回复
提交回复
热议问题