finally websockets close correctly

2017-08-09 Thread Cristian Lorenzetto
oh finally you resolved the problem with websockets when is closed... when i told you 2 years ago ... i didnt hear me

websocket thread safe send??

2017-02-21 Thread Cristian Lorenzetto
i have a question. I have multiple threads sending a message in a unique connection. Send api is thread safe? if it is not thread safe it is better to use synchronize or a queue?

TOMCAT WEBSOCKET CLARIFICATION

2017-02-17 Thread Cristian Lorenzetto
I have a doubt about a application using websocket. I have a application in which many threads can send a message to a specific connection. To send message is a thread safe function or not? In the case is not thread safe you suggest to use a queue or to use a synchronized on the connection

Re: ping websocket clients

2016-10-04 Thread Cristian Lorenzetto
connections. Inviato da iPad > Il giorno 03 ott 2016, alle ore 17:33, Cristian Lorenzetto > <cristian.lorenze...@gmail.com> ha scritto: > > Using websockets with tomcat i saw the connection is never closed until > client closes it. > It sounds Ok just if server send ping

ping websocket clients

2016-10-03 Thread Cristian Lorenzetto
Using websockets with tomcat i saw the connection is never closed until client closes it. It sounds Ok just if server send ping frame to client. Does tomcat make it? -if yes what is the ping interval?

WAR isolation lifecycle

2016-09-06 Thread Cristian Lorenzetto
It is a common problem to have a war can't unregister correctly in undeploy > phase. a lot of opensource libraries have this problem. So you have to > restart tomcat every time. > But if you have multiple war running and you cant stop other applications?

Re: Tomcat 8.5 Regarding PostResources for Web-Inf\lib and Web-Inf\classes

2016-09-06 Thread Cristian Lorenzetto
*WAR isolation lifecycle.* It is a common problem to have a war can't unregister correctly in undeploy phase. a lot of opensource libraries have this problem. So you have to restart tomcat every time. But if you have multiple war running and you cant stop other applications? 2016-09-05 21:14

Re: probable bug

2016-09-04 Thread Cristian Lorenzetto
final boolean mlast = message.isLast(); final int mlen = message.getPayloadLength(); *mlen is different in the last frame of the same message* 2016-09-05 0:36 GMT+02:00 Hassan Schroeder <hassan.schroe...@gmail.com>: > On Sun, Sep 4, 2016 at 1:52 PM, Cristian Lorenzetto > <c

probable bug

2016-09-04 Thread Cristian Lorenzetto
i m working on websocket with long messages. I saw ... payload message length is wrong in the last frame.

info

2016-04-21 Thread Cristian Lorenzetto
hi i ask you a info about websocket perfomance. How i can calculate the maximum number of concurrent webocket for machine? is there a relationship(maybe a factor 1 or similar) for the maximum number of http requests and the maxumum number of websocket for the same tomcat server? In particular

Fwd: bug

2016-04-20 Thread Cristian Lorenzetto
i sincronized the method for sending message but error is the same when ubuntu is suspended. The connections are not restored correctly when tomcat websocket process is wakeup Hi I m using tomcat in ubuntu system. When i leave my pc for 10 mins system is suspended. When i return to work i have

Fwd: Fwd: bug

2016-04-19 Thread Cristian Lorenzetto
n 19/04/2016 15:24, Cristian Lorenzetto wrote: > good analisys similar to mime , but when the pc wake up ... it might > restore also the connections enqueued. The connection remains freezed so it > gives this exception. Nope. You get that exception because the application has a bug. It is

Re: Fwd: bug

2016-04-19 Thread Cristian Lorenzetto
good analisys similar to mime , but when the pc wake up ... it might restore also the connections enqueued. The connection remains freezed so it gives this exception. 2016-04-19 16:08 GMT+02:00 André Warnier (tomcat) <a...@ice-sa.com>: > On 19.04.2016 16:00, Cristian Lorenze

Re: Fwd: bug

2016-04-19 Thread Cristian Lorenzetto
Sincerely in the doc is written that tomcat websocket is a 'single thread model' so it is already sincronized. I dont think it is that. 2016-04-19 15:55 GMT+02:00 André Warnier (tomcat) <a...@ice-sa.com>: > On 19.04.2016 15:41, Cristian Lorenzetto wrote: > >> 17-Apr-2016 10:50

Re: Fwd: bug

2016-04-19 Thread Cristian Lorenzetto
André Warnier (tomcat) <a...@ice-sa.com>: > On 19.04.2016 15:19, Cristian Lorenzetto wrote: > >> Hi I m using tomcat in ubuntu system. >> > > Tomcat version ? Java version ? > > http://lmgtfy.com/?q=BINARY_PARTIAL_WRITING > > > When i leave my pc f

Fwd: bug

2016-04-19 Thread Cristian Lorenzetto
Hi I m using tomcat in ubuntu system. When i leave my pc for 10 mins system is suspended. When i return to work i have this exception java.lang.IllegalStateException: The remote endpoint was in state [BINARY_PARTIAL_WRITING] which is an invalid state for called method at