--
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)
2. correct shutdown upon signaling
Since these changes might be useful, who/where do I send them, so they might get into
1.0.1?
About stderr redirection:
added 2 new log channels, stderr and stdout. A new LogOutputStream class is
responsible for converting stream io to messages sent to the log in the proper way
(and to the proper channel).
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.
Regards,
Rogério Gatto
--
--------------------------------------------------------------
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]