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.
Setting SO_REUSEADDR on the client side doesn't help the server side unless it also sets SO_REUSEADDR