Hacker News new | ask | show | jobs
by rix0r 1635 days ago
Shouldn't

   sock.close()
imply

   sock.shutdown()
? Isn't it pointless to call both?
2 comments

You're 100% right... In this case the shutdown is called with RDWR... so the author could simply call close!
Is there any case where a shutdown() right before a close() makes a difference?