What is the cost of many TIME_WAIT on the server side?

后端 未结 6 446
一整个雨季
一整个雨季 2020-11-27 10:50

Let\'s assume there is a client that makes a lot of short-living connections to a server.

If the client closes the connection, there will be many ports in TIME

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 11:07

    it looks like the server can just run out of ports to assign for incoming connections (for the duration of existing TIMED_WAITs) - a case for a DOS attack.

提交回复
热议问题