* [ruby-dev:51031] [Ruby master Bug#12538] hostsを書き換えてwebrickで書いたプロキシ―に繋いでいるとrubyが落ちる
[not found] <redmine.issue-12538.20160701123934.4517@ruby-lang.org>
@ 2021-03-04 22:42 ` merch-redmine
0 siblings, 0 replies; only message in thread
From: merch-redmine @ 2021-03-04 22:42 UTC (permalink / raw)
To: ruby-dev
Issue #12538 has been updated by jeremyevans0 (Jeremy Evans).
Status changed from Feedback to Closed
Closing as webrick is no longer part of the standard library. If this is still an issue, please report it to https://github.com/ruby/webrick
----------------------------------------
Bug #12538: hostsを書き換えてwebrickで書いたプロキシ―に繋いでいるとrubyが落ちる
https://bugs.ruby-lang.org/issues/12538#change-90740
* Author: uy (西行寺 うゆ)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mswin32_100]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
環境
OS:Win10
ブラウザ:Firefox
広告NG用にhostsを書きかえてプロキシーに接続してブラウジングしていると
しばらくしてrubyは動作を停止しましたと言われます
#coding:utf-8
require 'webrick'
require 'webrick/httpproxy'
handler = Proc.new() {| q , res |
}
s = WEBrick::HTTPProxyServer.new(
:BindAddress => '127.0.0.1',
:Port => 8082,
:Logger => WEBrick::Log::new($stderr, WEBrick::Log::DEBUG),
:ProxyVia => false,
:ProxyContentHandler => handler
)
Signal.trap('INT') do
s.shutdown
exit
end
s.start
---Files--------------------------------
hosts.txt (11.2 KB)
log.txt (261 KB)
4gxFT71[1].png (10.3 KB)
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] only message in thread