Results 1 to 3 of 3
  1. #1
    Power Member
    Join Date
    Nov 2012
    Posts
    182

    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.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  3. #3
    Power Member
    Join Date
    Nov 2012
    Posts
    182
    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

  1. SSL and multiple lightstreamer instances
    By GarrettMackey in forum General
    Replies: 2
    Last Post: October 20th, 2011, 02:11 PM
  2. Non-blocking IDataProvider.Subscribe
    By bartol82 in forum Adapter SDKs
    Replies: 1
    Last Post: August 30th, 2011, 11:15 AM
  3. Android browser --> SSL and error 39
    By Mone in forum Client SDKs
    Replies: 0
    Last Post: February 21st, 2011, 05:16 PM
  4. non-display listener
    By EWANG in forum Client SDKs
    Replies: 1
    Last Post: October 9th, 2009, 11:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:46 AM.