From: merch-redmine@jeremyevans.net
To: ruby-dev@ruby-lang.org
Subject: [ruby-dev:51031] [Ruby master Bug#12538] hostsを書き換えてwebrickで書いたプロキシ―に繋いでいるとrubyが落ちる
Date: Thu, 04 Mar 2021 22:42:45 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-90740.20210304224245.4517@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-12538.20160701123934.4517@ruby-lang.org>
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/
parent reply other threads:[~2021-03-04 22:42 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <redmine.issue-12538.20160701123934.4517@ruby-lang.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-90740.20210304224245.4517@ruby-lang.org \
--to=merch-redmine@jeremyevans.net \
--cc=ruby-dev@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).