tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Websocket Questions
Date Fri, 27 Apr 2012 15:37:01 GMT
On 27/04/2012 15:51, Konstantin Prei├čer wrote:
> Hi all,
> 
> I'm using Tomcat 7.0.27 with Native 1.1.23 on Windows Server 2008
> 32-bit with Java 1.7.0_03.
> 
> Recently I started a project which uses Websockets. It is a simple
> app where the clients submit the current mouse position to the
> server, and the server then broadcasts the position of that user to
> all other connected users.
> 
> To see how the Websocket Implementation in Tomcat works, I read the
> Chat example
> (http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/TOMCAT_7_0_27/webapps/examples/WEB-INF/classes/websocket/chat/ChatWebSocketServlet.java)
> from Johno Crawford.
> 
> 1. It seems that the connector's "connectionTimeout" attribute is
> used to determine when the Websocket connection should be closed
> after inactivity. Is this intended?

At the moment, yes. There is probably a need for a separate timeout but
there needs to be a timeout. You can use ping messages to avoid it.

> 2. Is there experience of using the HTTP APR connector with
> Websockets? When I tried to use Websockets with that connector, the
> JVM crashed in tcnative-1.dll some minutes after Tomcat was started:

It has been tested as much as the others.

> # # A fatal error has been detected by the Java Runtime Environment: 
> # #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1000476d,
> pid=3144, tid=9820 # # JRE version: 7.0_03-b05 # Java VM: Java
> HotSpot(TM) Client VM (22.1-b02 mixed mode, sharing windows-x86 ) #
> Problematic frame: # C  [tcnative-1.dll+0x476d] # # Core dump
> written. Default location:
> C:\Users\AdminKP\Desktop\apache-tomcat-7.0.27\bin\hs_err_pid3144.mdmp

The full stack would be useful. It might point to where things are going
wrong.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message