Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Long polling and HTTPS
Hi,
Is long polling compatible with HTTPS protocol? My application is set up to use WebSockets as primary transport and long polling as fallback. In Safari 8, websockets would fail and the transport would fall back to long polling if the certificate is invalid. However, I got this error message:
* WebSocket network error: OSStatus Error -9807: Invalid certificate chain
* Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent).
* Websocket closed, wasClean: false
* Websocket failed. Downgrading to Comet and resending:
https://localhost/PUSH?v-uiId=4&v-csrfToken=42400973-f3cc-4118-9dae-c4cbab8f1b7d&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.2.6.vaadin5-jquery&X-Atmosphere-Transport=long-polling&X-Atmosphere-TrackMessageSize=true&Content-Type=application%2Fjson%3B%20charset%3DUTF-8&X-atmo-protocol=true&_=1441759216297
* Failed to load resource: the server responded with a status of 500 (Internal Server Error)
This is a MacOS + Safari only issue. It would be great if anyone has answers to my question or insights to share.
Thanks!