Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java socket slow to send a FIN packet

843790Aug 11 2006 — edited Aug 11 2006
Watching 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2006
Added on Aug 11 2006
3 comments
421 views