Java socket slow to send a FIN packet
843790Aug 11 2006 — edited Aug 11 2006Watching my Java server in Ethereal, there's about a second's delay between my program sending its last output and the FIN packet finally going out; this produces an annoying delay for the client. Does anyone have any idea why this might be the case?
I'm closing the connection using sock.shutdownOutput(); the Input side has been closed earlier on. I've also tried using close() after shutdownOutput, but this has no effect. Using close() on its own causes the stream to be truncated.