-
February 27th, 2015, 11:03 AM
#1
Mixing SSL and non-SSL
I would like to create a situation where the browser is connected to the HTTP server via SSL, but connects to the LS server without using SSL.
I tried setting the server address to the non-SSL URI the
Code:
setServerAddress(Uri);
but when I do that the LS client doesn't even attempt to make a connection. It only seems to try to connect if the protocol used in the URI passed to setServerAddress matches the document.location.protocol setting.
So the question is, am I able to do this sort of thing or not?
The reason I need to try this is that the connection to the LS server using SSL seems to be too slow. It seems to take quite a while to connect compared to the non-SSL protocol (presumably some sort of lengthy negotiation talking place). Also, the LS server itself seems to consume an abnormal amount of CPU when SSL connections are being used.
-
March 2nd, 2015, 10:03 AM
#2
Hi Kevin,
Unfortunately in this case there is not much I can do to help you.
You can open a cross protocol session from a https page to a http server only on IE<=9 (and the user might get a message asking if he's sure to do that). Also the open connection will be a JSONP connection, that's the least efficient transport available within the client library.
In the past such connections were possible through standard XHR requests (never been possible through WebSocket) but the browsers updated their policy and as today not even the JSONP technique works anymore.
I forgot to update the connection matrix to highlight this case.
HTH
-
March 2nd, 2015, 10:19 AM
#3
OK - figured as much. I might have to start looking at other possible reasons for the slow SSL connections and high CPU usage.
Similar Threads
-
By GarrettMackey in forum General
Replies: 2
Last Post: October 20th, 2011, 01:11 PM
-
By bartol82 in forum Adapter SDKs
Replies: 1
Last Post: August 30th, 2011, 10:15 AM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: February 21st, 2011, 04:16 PM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: October 9th, 2009, 10:46 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 10:01 AM.
Bookmarks