You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to access http server with https protocol the logger registered with set_logger on server:
is invoked not once, but 12(!) times. (With #define CPPHTTPLIB_THREAD_POOL_COUNT 1 it seems to be 8 times.)
Parameter Request is empty (request.remote_addr and others are empty). I want to know who tired to access server and log it. Edit: I now understood why most fields are empty (like path as server never receives that information), but remote_addr should be possible to include?!
What does it mean Edit: I now understood why most fields are empty (like path as server never receives that information), but remote_addr should be possible to include?. Could you provide more detail?
As per my understanding when client tries to access server using https it first tries to set up TLS and only then sends the actual HTTP request. If that fails server will never know what was client's requests hence it makes sense why HTTP related fields in Request are empty when logger callback gets invoked.
Server on the other hand should know what was remote_addr and remote_port that tried to set up TLS and failed and it would be useful to include this information in Request parameter if possible.
If I try to access http server with https protocol the logger registered with set_logger on server:
is invoked not once, but 12(!) times. (With#define CPPHTTPLIB_THREAD_POOL_COUNT 1
it seems to be 8 times.)Also with this code:
The "handling request" gets logged before "received request". At least in my case that is not convenient.
The text was updated successfully, but these errors were encountered: