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!

How to avoid stale connections in TCP/IP

843790Jul 1 2006 — edited Jul 4 2006
I wrote a code using plain TCPIP socket programming with java.In my code i will maintain a pool of TCPIP connections and if any request comes ,i will take a connection from the pool and uses it to send data to server.The problem is if the Server goes down and if it comes up and if im trying to send data through the socket,the TCPIP layer doesnt throw any Exceptions but the data is not reaching the Server.So is there a way of detecting this stale connection.(I dont like to connect to Server every time the request comes.I will try to use the Connection from connection pool.Thats why this problem is coming)

Thanks in Advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2006
Added on Jul 1 2006
2 comments
1,467 views