ufairiya / mongoose

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

conn->request_info.remote_ip is being set, then zeroed out #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Register a custom request handler
2. In it, print ri->remote_ip
3.

What is the expected output? What do you see instead?

Expected output: the client's IP adresse as a integer
What I see: alway '0'

What version of the product are you using? On what operating system?

Version: from http://code.google.com/p/mongoose/source/browse
as per now

Please provide any additional information below.

Remote_ip is set in the worker_thread procedure.
Worker_thread then calls process_new_connection
which invokes reset_connection_attributes(conn)
which zeros out the entire request_info structure
including the remote_ip field :-(

Original issue reported on code.google.com by aysa...@gmail.com on 15 Aug 2010 at 2:33

GoogleCodeExporter commented 9 years ago
Sorry, that's a duplicate of 161, feel free to close :)

Original comment by aysa...@gmail.com on 15 Aug 2010 at 6:00

GoogleCodeExporter commented 9 years ago

Original comment by valenok on 23 Aug 2010 at 7:33