Avoiding TIME_WAIT

前端 未结 3 704
一个人的身影
一个人的身影 2020-12-19 06:47

I\'m trying to avoid TIME_WAIT in a client. I connect and then set O_NONBLOCK and SO_REUSEADDR. I call read until it returns 0. When read returns 0, the errno is also 0.

3条回答
  •  抹茶落季
    2020-12-19 07:21

    Setting SO_REUSEADDR on the client side doesn't help the server side unless it also sets SO_REUSEADDR

提交回复
热议问题