----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Greetings,
Having dabbled a little in c socket programming, I believe the TIME_WAIT
state is normal. the kernel is just hanging onto the socket, waiting to
make sure that all data was delivered (remember, tcp is guaranteed
delivery).
For more info, see
http://www.softlab.ntua.gr/facilities/documentation/unix/unix-socket-faq/uni
x-socket-faq-2.html#time_wait
regards,
McClain Looney
Senior Developer
WebHelp.com
p.s. Hi nick!
----- Original Message -----
From: "Bruce Butterfield" <[EMAIL PROTECTED]>
To: "Java Apache Users" <[EMAIL PROTECTED]>
Sent: Wednesday, January 05, 2000 11:03 AM
Subject: Re: Socket problem
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Well, my code is not opening or closing any sockets explicitly; this is
> strictly
> an issue of mod_jserv talking to the servlet engine. This problem comes
> up as soon
> as I start Apache/ApacheJServ.
>
> I have rooted around in the sources to see if anything obvious pops up
> but not so far. Let me ask the question in another way: is anyone using
> either Linux or Solaris NOT seeing this behavior? Just starting up
> ApacheJServ results in a bunch of TIME_WAIT sockets as the 3 second
> interval PING message executes. Do a 'netstat -a' to see this.
>
> Nick Bauman wrote:
> >
> > Simple idea, but are you _sure_ you're closing your
> > sockets every time? I'm not sure I am unless I have a
> > finally{} block in my servlet.
> >
> > try {
> > // do stuff
> > } catch( java.io.IOException ex ) {
> > // do stuff
> > System.err.println("ServletName: "+ex);
> > } finally {
> > // do stuff
> > try {
> > out.flush();
> > out.close();
> > } catch(Exception ignore) {}
> > }
> >
> > =====
> > # Nick Bauman
> > # Technical Programmer
> > # http://webhelp.com
> > # real people, real answers, real time
> > __________________________________________________
> > Do You Yahoo!?
> > Talk to your friends online with Yahoo! Messenger.
> > http://messenger.yahoo.com
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
>
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]