File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Error during socket connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error during socket connection" Watch "Error during socket connection" New topic
Author

Error during socket connection

Krithi Raghu
Greenhorn

Joined: Jan 15, 2008
Posts: 23
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..
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

"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.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error during socket connection