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!

java socket connection timeout taking more time when running in unix

902524Nov 28 2011 — edited Dec 1 2011
Hi

i have a code which uses Socket(ipaddress,port) constructor where we give ip and port.
when ever the ip port is not rechable its taking around 3 mins to time out when run in unix environment where as same thing is getting time out instantly in eclipse.

Please help me out with the same is there something explicitly mentioned in the unix env which takes more time to timout of socket connection

And just to add in the unix we have used glassfish server if the timeout not mentioned in unix then is it in the server level.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2011
Added on Nov 28 2011
6 comments
1,014 views