Results 1 to 2 of 2
  1. #1
    gabriel is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default problem with ServerSocket on Linux

    I created a server class with ServerSocket, and run it on Linux, when the Linux is rebooted, the client side could not feel it. It is still pending at "read" method instead of -1 returned from the method.
    It works when it is not run in daemon.

  2. #2
    fred is offline Member
    Join Date
    Jul 2007
    Rep Power


    Does the JVM notify daemon threads of a JVM shutdown? I can imagine a scenario where the OS tells the JVM to terminate. The JVM will shutdown, but the deamon threads will not be interrupted by the shutdown.
    See: - Short, Self Contained, Compilable Example and How to get answers on the* newsgroups

Similar Threads

  1. Replies: 6
    Last Post: 04-08-2009, 04:05 AM
  2. [SOLVED] Problem with setVisible(); on LINUX
    By lepetitprince in forum AWT / Swing
    Replies: 9
    Last Post: 11-22-2008, 04:14 PM
  3. new member need help with linux
    By praveena in forum New To Java
    Replies: 0
    Last Post: 01-22-2008, 10:22 AM
  4. Problem locating resources on Linux.
    By jimm1 in forum New To Java
    Replies: 1
    Last Post: 01-18-2008, 06:34 PM
  5. Linux and java
    By Alan in forum Advanced Java
    Replies: 2
    Last Post: 05-31-2007, 02:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts