How to avoid a NoRouteToHostException?

后端 未结 6 1862
傲寒
傲寒 2020-12-02 06:09

Disclosure: the code I\'m working on is for university coursework.

Background: The task I\'m trying to complete is to report on the effect of different threading tec

6条回答
  •  渐次进展
    2020-12-02 06:28

    Have you tried setting:

    echo "1" >/proc/sys/net/ipv4/tcp_tw_reuse
    

    and/or

    echo "1" >/proc/sys/net/ipv4/tcp_tw_recycle
    

    These settings may make Linux re-use the TIME_WAIT sockets. Unfortunately I can't find any definitive documentation.

提交回复
热议问题