I'm implementing a small TCP server. How do I know if one of my clients closed? Should I just try to read or write and check if err is nil?
err
2.1m questions
2.1m answers
60 comments
57.0k users