mod_remoteip-httpd22 icon indicating copy to clipboard operation
mod_remoteip-httpd22 copied to clipboard

Fix bug that break remote ip sometime.

Open buzztaiki opened this issue 13 years ago • 1 comments

同じクライアントからリクエストを何度か連続して送るとremote_ipが壊れる問題を直してみました。

こんなことが起きていたみたいです。

  • c->remote_ipr->hookから確保した文字列を設定
  • リクエストの処理が終わってrが破棄される
  • cはまだ破棄されない
  • 同じ接続元からのリクエストがあってcが使いまわされる
  • c->remote_ipは開放済みの場所を指している
  • c->remote_ipが指している場所に全然関係ないものが入ってしまう

buzztaiki avatar Nov 27 '12 02:11 buzztaiki

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.

joeyhub avatar Jul 21 '15 10:07 joeyhub