• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Error during socket connection

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a socket server and socket client. The client is able to
communicate with the server without any issues. But when we try to kill
the server using kill command, it shows the following error


I dont have any idea on why such an error comes... and how to handle it...
Expecting some guidance on this...

Thanks..
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Using the kill command", like, something built into your server protocol? Or "using the kill command" like, running the UNIX "kill" program? If it's the latter, then that's pretty much what you should expect -- "kill" isn't the right way to shut down a process cleanly. If you want a nice quiet way to turn your server off, provide another ServerSocket listening on a special port, and when that port receives a connection (or a connection followed by some special input sequence) then have the server exit.
 
Evacuate the building! Here, take this tiny ad with you:
Java Code Review and Psychology
https://coderanch.com/t/714798/java/Java-Code-Review-Psychology
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!