glyn        2002/06/25 08:43:46

  Modified:    java/src/org/apache/axis/transport/http
                        SimpleAxisServer.java
  Log:
  Fix SimplesAxisServer stop method as the thread that does the accept is not
  interrupted on Linux, so we have to shutdown the process itself.
  
  Fix supplied by dims - thanks!
  
  Revision  Changes    Path
  1.63      +8 -1      
xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java
  
  Index: SimpleAxisServer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- SimpleAxisServer.java     25 Jun 2002 13:55:58 -0000      1.62
  +++ SimpleAxisServer.java     25 Jun 2002 15:43:46 -0000      1.63
  @@ -208,13 +208,20 @@
        * This will interrupt any pending accept().
        */
       public void stop() throws Exception {
  +        /* The following code, before log.info, may be unnecessary given
  +         * that we are about to kill the JVM.
  +         */
           stopped = true;
           try {
               serverSocket.close();
           } catch (Exception e) {
               e.printStackTrace();
           }
  -        if (worker != null) worker.interrupt();
  +        if (worker != null) {
  +            worker.interrupt();
  +        }
  +        log.info(JavaUtils.getMessage("quit00", "SimpleAxisServer"));
  +        System.exit(0);
       }
   
       /**
  
  
  


Reply via email to