• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is there any timeouts for Java Nio SocketChannel??

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
grapes are vegan food pellets. Eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic