• Post Reply Bookmark Topic Watch Topic
  • New Topic

SocketChannel remains open after disconnect from other side  RSS feed

 
J Kneeland
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using telnet to test it out. I telnet in and it works find, but it always says I'm still connected on the other side. I can even call isConnected(); on the channel and it still returns true. You need Java 1.5 to compile this since I am using BlockingQueue and Generics. You can find the precompiled versions at http://files.amdfanboy.com under JChat.

 
Kris Adams
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey J
I have a similar problem. I close the socketChannel using close() method. But socketChannel.isConnected() returns true. Can you tell me how to close the socketChannel so that the tcp connection is terminated.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question belongs in the Sockets and Internet Protocols forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!