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
1.4m articles
1.4m replys
5 comments
57.0k users