When a connection setup fails due to an SSL problem, custom log callbacks
won't have access to the IP/port information since the mg_request_info
struct is only filled later on (and mg_connection is not a public struct).
Since IP/port information is not parsed from the HTTP request but rather
found in the socket, I've create a patch which extracts this code into a
separate function which can be called early after get_socket(...) returns,
before the SSL error checks take place. Thus the corresponding fields in
mg_request_info will already be set even if the SSL connection setup fails.
Any feedback is appreciated
Original issue reported on code.google.com by johannes...@gmail.com on 9 Apr 2010 at 1:49
Original issue reported on code.google.com by
johannes...@gmail.com
on 9 Apr 2010 at 1:49Attachments: