--

Hi --

The proper address to which to send a patch like this is the developers
list -- information about this is available on the website.  You can
subscribe by sending mail to [EMAIL PROTECTED]

On Thu, 8 Jul 1999, [iso-8859-1] Rogério Meneguelli Gatto wrote:
> Hi guys,
> 
> I've changed a couple things on my JServ 1.0 (final), to achieve these goals:
> 
>       1. stderr and stdout log redirection (using the logging mechanism)

Do you do this on the Java side?  IMO, doing it on the C side is better,
as it may get around problems which some users encounter w/ permissions --
simply duping the file descriptors is an efficient means to accomplish
this.

I've got a patch which does this on the C side ... but so far STDOUT
doesn't stick through the exec (STDERR does).  I'm not yet sure why.

>       2. correct shutdown upon signaling
>
> About correct shutdown:
> 
> JServ was hanging (Solaris 2.5.1, Apache 1.3.6, JDK 1.1.8) while trying
> to close() the server socket.  My guess is that it was calling
> ServerSocket.close() at the same time, in another thread, than
> ServerSocket.accept(). 
>
> I fixed it by making JServConnection read the first request line and, if
> it's a signal, throws a special exception and let the main loop (and
> main thread) take care of signal handling.  Thus, a new thread is only
> started to handle non-signal connections. 

interesting ... that sounds like the right thing to do, at least if it
solves the problem.  I've also observed JServ hanging, but so far haven't
gotten around to trying to fix them ...

Ed



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

Reply via email to