mod_remoteip-httpd22
mod_remoteip-httpd22 copied to clipboard
Fix bug that break remote ip sometime.
同じクライアントからリクエストを何度か連続して送るとremote_ipが壊れる問題を直してみました。
こんなことが起きていたみたいです。
c->remote_ipにr->hookから確保した文字列を設定- リクエストの処理が終わって
rが破棄される cはまだ破棄されない- 同じ接続元からのリクエストがあって
cが使いまわされる c->remote_ipは開放済みの場所を指しているc->remote_ipが指している場所に全然関係ないものが入ってしまう
I can confirm this bug exists and it still appears to be in trunk.
I receive empty ips for subsequent requests from keepalive connections that are proxied.
This can also be fixed with various proxy configurations.