Skip to content
This repository has been archived by the owner on Dec 19, 2021. It is now read-only.

Fix bug that break remote ip sometime. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

buzztaiki
Copy link

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

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

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

Cleanup connection object when release request.
joeyhub added a commit to joeyhub/mod_remoteip-httpd22 that referenced this pull request Jul 21, 2015
@joeyhub
Copy link

joeyhub commented Jul 21, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants