Y
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
oogali
1635 days ago
https://beej.us/guide/bgnet/html/#close-and-shutdownget-outt...
link
vadiml
1635 days ago
You're 100% right... In this case the shutdown is called with RDWR... so the author could simply call close!
link
ptspts
1635 days ago
Is there any case where a shutdown() right before a close() makes a difference?
link