-
November 17th, 2011, 08:05 PM
#1
Viewing IP supplied in HTTP header
Hi,
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).
Thanks,
John Foley.
-
November 21st, 2011, 09:59 AM
#2
Hi,
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
HTH
Similar Threads
-
By ned_b in forum Client SDKs
Replies: 4
Last Post: August 24th, 2011, 10:31 AM
-
By jsharpe in forum Client SDKs
Replies: 4
Last Post: February 4th, 2009, 11:45 PM
-
By riwang in forum Client SDKs
Replies: 1
Last Post: January 7th, 2009, 10:56 AM
-
By DarioCrivelli in forum Adapter SDKs
Replies: 1
Last Post: November 14th, 2008, 04:58 PM
-
By jsharpe in forum Adapter SDKs
Replies: 0
Last Post: January 10th, 2007, 04: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
-
Forum Rules
All times are GMT +1. The time now is 10:33 AM.
Bookmarks