h2ooooooo / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

separate extracting of socket related info from HTTP req parsing #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments:

GoogleCodeExporter commented 9 years ago
Submitted http://code.google.com/p/mongoose/source/detail?r=495
Thank you.

Original comment by valenok on 21 Apr 2010 at 11:37