wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Is there any timeouts for Java Nio SocketChannel?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Is there any timeouts for Java Nio SocketChannel??" Watch "Is there any timeouts for Java Nio SocketChannel??" New topic
Author

Is there any timeouts for Java Nio SocketChannel??

ramakrishna rayudu
Ranch Hand

Joined: Mar 08, 2011
Posts: 57
Hi..

This is Ramky.can any one please help regrading my Question in my project we have Server called GTM-GatewayServer this was Developed using
Java Nio API we have so many Clients all Clients Apps Will connect to this server and they can send SMS to Mobile Users.
here is MyQuestion that if any Client connected to This NioServer we are storing the Socket Channel with Clinet ID in HashMap.
After a long time when the Server wants to send some data to the Client server will get the SocketChannel Obejct from HashMap
and it will try to Write Data on the Scoket Channel But its giving that Socket is Closed.is there any time out for Scoket or Scoket Channle?? (or)
will Scoket or Scoket Channel will Automatically Closed if i put Scoket Channel or Scoket Ideal for Long time???

Thanks in Advance,
Ramky
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is there any timeouts for Java Nio SocketChannel??
 
Similar Threads
NIO Socket weirdnes in Solaris 2.10
SocketChannel and FileChannel
Question regarding the SocketChannel
does a nio socket buffer data internally too?
ServerSocketChannel.accept() seems to create a random port to send data to?