Results 1 to 2 of 2
- 07-16-2009, 06:46 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 1
- Rep Power
- 0
Sockets, IOExceptions, and What's different with Linux
Hello all -
This my first post here. I have ran into a bit of an issue with some code I have written. I have written a small client/server application that works on the premise that if the remote application ends, the socket will be broken, and an IOException will be thrown. I then catch the IOException and then end the particular thread associated with that socket. This works fine in Windows, but when I kill the remote application in Linux, an IOException is never thrown on the server, it's as if the socket is still there even tho the application ended. I'm thinking there is something different that happens when I kill a process in Linux vs Windows. I have tried using the SIGINT, and SIGTERM switches for kill but they made no difference. Does anyone have any idea, admittedly I am a Linux noob, thanks!
-Kam
- 07-24-2009, 05:43 AM #2
Member
- Join Date
- Jul 2009
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
[SOLVED] Windows Linux conflict - TrayIcon image not display in Linux
By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 04:05 AM -
Sockets NIO
By aamp in forum New To JavaReplies: 3Last Post: 01-15-2009, 10:56 AM -
Sockets
By Zosden in forum NetworkingReplies: 16Last Post: 05-27-2008, 04:55 PM -
IOExceptions and missing JavaDoc
By tim in forum NetBeansReplies: 0Last Post: 01-29-2008, 12:55 PM -
Help with Sockets
By Eric in forum NetworkingReplies: 3Last Post: 12-01-2007, 08:09 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks