Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2011

    Viewing IP supplied in HTTP header


    If the clients IP is stored in the x-client-ip in the HTTP header, is there any way to log this in the LightStreamer logs?
    We are troubleshooting sync errors caused by persistance problems when sending control messages, and this information could assist. I've tried trace settings on various categories in the LS logs, but have not been able to uncover an option which supplies this (The log and port supplied in LightstreamerLogger.requests only show the load balance IP, not the original client).

    John Foley.

  2. #2
    Power Member
    Join Date
    Jul 2006
    Cesano Maderno, Italy

    in the notifyNewSession and notifyUser methods of the MetadataProvider you can inspect the http headers of the create_session request, you can log it from there; is this enough for your goals? (obviously you have to code your own metadata adapter to log that information)

    Otherwise you can set the LightstreamerLogger.connections.http log category to DEBUG level, this will log all the request/response details: it may be not feasible to use this option if you have a high load on the server




Similar Threads

  1. Adding a http Header to a client connection
    By ned_b in forum Client SDKs
    Replies: 4
    Last Post: August 24th, 2011, 11:31 AM
  2. Replies: 4
    Last Post: February 5th, 2009, 12:45 AM
  3. cross domain between http and https
    By riwang in forum Client SDKs
    Replies: 1
    Last Post: January 7th, 2009, 11:56 AM
  4. Adding recovery capability to the supplied Proxy Adapter
    By DarioCrivelli in forum Adapter SDKs
    Replies: 1
    Last Post: November 14th, 2008, 05:58 PM
  5. Replies: 0
    Last Post: January 10th, 2007, 05:03 PM


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 11:55 AM.