Hi JServers,

I'm running 1.0b3 w/ Apache 1.3.6 on Solaris 2.6, static built.  JDK
1.1.7b Reference, native threads.

I'll be running in manual mode, so I made this class to control JServ's
start/stop.

On the stop method, I have two questions:

        1. It appears to take a second connection to shutdown JServ. 
           After I send signal 15, it prints to the log:

           [29/03/1999 12:27:44:761 EST] Reading request data
           [29/03/1999 12:27:44:800 EST] Received signal 15
           [29/03/1999 12:27:44:800 EST] Closing the server socket

           Only after I open a second connection, and just try to read
from it,
           JServ rests in peace like this:

           [29/03/1999 12:27:44:800 EST] Terminating
eplandev.widesoft.com.br
           [29/03/1999 12:27:44:800 EST] Destroying Servlets
           [29/03/1999 12:27:44:800 EST] Terminating JServ...
           [29/03/1999 12:27:44:806 EST] JServ terminated.

           Is this the correct behaviour, or is it a bug?

        2. After JServ shuts down (or 'shutdowns' ?!?), I get 2
           entries in `netstat -a` regarding my port:

localhost.57217      localhost.18009      32768      0  8192      0
TIME_WAIT
localhost.18009      localhost.57218       8192      0 32768      0
TIME_WAIT


Here goes my history, so you can get an idea of what I'm doing:

% jservctl eplandev.properties start
% netstat -a | grep 18009
      *.18009              *.*                0      0     0      0
LISTEN
% tail servlets.log
[29/03/1999 12:26:52:409 EST] Servlet name: eplanChgDemand
[29/03/1999 12:26:52:409 EST] Servlet name: eplanChgValue
[29/03/1999 12:26:52:409 EST] Servlet name: eplanChgHoliday
[29/03/1999 12:26:52:409 EST] Servlet name: supAnalisys
[29/03/1999 12:26:52:409 EST] Servlet name: selectFactory
[29/03/1999 12:26:52:409 EST] Servlet name: supOrder
[29/03/1999 12:26:52:409 EST] Servlet name: prodOrder
[29/03/1999 12:26:52:409 EST] Servlet name: eplanChgLnFactory
[29/03/1999 12:26:52:409 EST] Servlet name: prodAnalisys
[29/03/1999 12:26:52:410 EST] Servlet Zone eplandev.widesoft.com.br
initialization complete
% jservctl eplandev.properties stop
Chalenge size: 13
Sent response
Sent signal 15
% netstat -a | grep 18009
localhost.57217      localhost.18009      32768      0  8192      0
TIME_WAIT
localhost.18009      localhost.57218       8192      0 32768      0
TIME_WAIT
% tail servlets.log
[29/03/1999 12:26:52:410 EST] Servlet Zone eplandev.widesoft.com.br
initialization complete
[29/03/1999 12:27:44:750 EST] Connection from localhost/127.0.0.1
[29/03/1999 12:27:44:761 EST] Initializing servlet request
[29/03/1999 12:27:44:761 EST] Reading request data
[29/03/1999 12:27:44:800 EST] Received signal 15
[29/03/1999 12:27:44:800 EST] Closing the server socket
[29/03/1999 12:27:44:800 EST] Terminating eplandev.widesoft.com.br
[29/03/1999 12:27:44:800 EST] Destroying Servlets
[29/03/1999 12:27:44:800 EST] Terminating JServ...
[29/03/1999 12:27:44:806 EST] JServ terminated.
%


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to