P
P
Pavlo Ponomarenko2012-11-26 19:58:24
JavaScript
Pavlo Ponomarenko, 2012-11-26 19:58:24

Glassfish, Comet, HTTPS, Atmoshpere?

We have a web application that runs on the Atmosphere framework and communicates with the client using HTTP-Streaming (the "Comet Support" option is enabled in Glassfish). Works great.

It was necessary to secure the connection - completely switch to https. As a result, we have a problem - the connection rises, lasts for several seconds (from a second to ten), after which it first freezes, and then breaks by timeout. Tellingly, sometimes it allows you to get a couple of messages, but quickly falls. This observation is observed in various browsers, when implementing streaming via iFrame or via ajax onStateChange

What do you know of ways to solve this problem or alternative approaches? I would not want to switch to long-polling - establishing a connection is quite resource-intensive - a large number of clients and a large number of requests for each of them are planned.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question