In Java, is there a difference between setting a socket with Socket.setSoLinger(true, 0) and not calling setSoLinger at all? Is there a difference in how the socket is closed?
I have looked through the Java sources, and I don't see anything special around socket closes with regards to soLinger. This leads me to believe this is an OS specific behavior. In my case I am working on Linux.