tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Skavish <skav...@usa.net>
Subject IE and tomcat
Date Sat, 21 Jul 2001 01:06:13 GMT
hello,

I am having a little bit of problem which is very annoying, so
may be somebody here can help me.

My servlet processes flash template files (.swt) and genarates flash files
(.swf). It handles all files from any directory with extension .swt (for those
who is interested it's an open source project: http://www.flashgap.com).

It works fine when a client is netscape, I mean when I type something like
http://myhost/card.swt the servlet receives one request and do the job only
once.

But when a client is IE the servlet receives three requests! And one of them
(seconds) is always result in "connection reset by peer..." error.
Does anybody have any idea what is going on and how to fix it?

I print headers of the requests to the log, so here is excerpts from the log
file.

This is log from netscape request:

'request(GET) -> F:\Tomcat3.2\webapps\ROOT\insMovie.swt'
'Header: name='accept-language', value='en,ru''
'Header: name='connection', value='Keep-Alive''
'Header: name='accept', value='image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, image/png, */*''
'Header: name='host', value='localhost''
'Header: name='accept-charset', value='iso-8859-1,*,utf-8''
'Header: name='accept-encoding', value='gzip''
'Header: name='user-agent', value='Mozilla/4.7 [en] (WinNT; U)''
Processed file 'F:\Tomcat3.2\webapps\ROOT\insMovie.swt', output size 34375
bytes, processing time 751ms, total time 761ms


this is log from IE's (3 requests):

'request(GET) -> F:\Tomcat3.2\webapps\ROOT\insMovie.swt'
'Header: name='accept-language', value='en-us,ru;q=0.5''
'Header: name='connection', value='Keep-Alive''
'Header: name='accept', value='application/vnd.ms-excel, application/msword,
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*''
'Header: name='host', value='localhost''
'Header: name='accept-encoding', value='gzip, deflate''
'Header: name='user-agent', value='Mozilla/4.0 (compatible; MSIE 5.0; Windows
NT; DigExt)''
Processed file 'F:\Tomcat3.2\webapps\ROOT\insMovie.swt', output size 34375
bytes, processing time 60ms, total time 70ms
'request(GET) -> F:\Tomcat3.2\webapps\ROOT\insMovie.swt'
'Header: name='accept', value='*/*''
'Header: name='host', value='localhost''
'Header: name='user-agent', value='contype''
Connection aborted by peer: socket write error
java.net.SocketException: Connection aborted by peer: socket write error
	at java.net.SocketOutputStream.socketWrite(Native Method)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
	at
org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:162)
	at
org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:121)
	at
org.apache.tomcat.core.BufferedServletOutputStream.write(BufferedServletOutputStream.java:192)
	at com.iv.flash.servlet.GeneratorServlet.send(GeneratorServlet.java:408)
	at
com.iv.flash.servlet.GeneratorServlet.processTemplate(GeneratorServlet.java:292)
	at com.iv.flash.servlet.GeneratorServlet.doGen(GeneratorServlet.java:216)
	at com.iv.flash.servlet.GeneratorServlet.doGet(GeneratorServlet.java:174)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
'request(GET) -> F:\Tomcat3.2\webapps\ROOT\insMovie.swt'
'Header: name='connection', value='Keep-Alive''
'Header: name='accept', value='*/*''
'Header: name='host', value='localhost''
'Header: name='accept-encoding', value='gzip, deflate''
'Header: name='user-agent', value='Mozilla/4.0 (compatible; MSIE 5.0; Windows
NT; DigExt)''
Processed file 'F:\Tomcat3.2\webapps\ROOT\insMovie.swt', output size 34375
bytes, processing time 90ms, total time 110ms




-- 
Dmitry Skavish
-----------------------
Boston, MA, USA
tel. +1 781 370-6909
http://www.flashgap.com


Mime
View raw message