Below is what I believe is the proper explanation.  Every time this
question comes up, I post a message with similar content and no one has sent
me any messages indicating that I am wrong.

        The reason this occurs from two different facts:
        1.  In today's Net congested world, we try very hard to transfer as
little as possible across the network.  As such, web browsers attempt to
cache files locally to prevent the necessary reloading of files already
visited (note, a file could be html, gif, css, or whatever).  Part of HTTP
(HyperText Transfer Protocol) allows the server to put a last modified
timestamp in the headers.  The web browser then looks for this header.  If
it has the most recent copy, it knows that it doesn't need to download
again.  However, HTTP does not allow for the client to send a message
basically stating that it doesn't need the file.  In order to save
bandwidth, the client closes the socket.  Notice that all of this is browser
independent.  By the way, Tomcat only does this for static content, its up
the developer for the JSP/Servlet to add a last-modified timestamp.  The
lack of one implies that the content is new every time.

        2.  Something in the way that IE closes its sockets triggers the
Socket Write Error on Sun's Windows JVMs.  I don't believe that this error
occurs with Netscape and doesn't occur on Unix JVMs.  This is why the
problem is only seen on Windows with IE.

        Does that make things clearer?  To avoid seeing this error message
you must set the logging in server.xml to FATAL for the tc_log.  

        Randy


-----Original Message-----
From: Andrew Robson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 9:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Ctx( ): IOException in: R( + /tomcat-power.gif + null)
socket write error


Hi,
  I think this is an error which has been discussed a number of times
on the list. To the best of my recollection problem stems from IE's
caching behaviour. You have two choices
1) Ignore it - as you say page loads fine
2) Do something to prevent IE caching the resources
however recollection hazy - your best bet is to look 
through the archives on this list for proper explanation 
and best course of action

andrew

On Mon, 12 Mar 2001, you wrote:
> Hello,
> 
> I am running tomcat 3.2 on NT. While trying to access
> http://localhost/index.html I get the following errors:
> 
> 2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  + /index.html +
> null)
> socket write error (code=10053)
> 2000-12-12 09:27:41 - Ctx(  ): IOException in: R(  + /tomcat-
> power.gif +
> null) socket write error (code=10053)
> 
> but page loads fine. Any ideas?
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to