mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/config.rb (WEBrick::Config::General): add
:DoNotReverseLookup. * lib/webrick/server.rb (WEBrick::GenericServer#accept): call do_not_reverse_lookup for each socket if :DoNotReverseLookup is set. [ruby-code:02357] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d92d0a135
commit
0d8a0904d9
3 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
|||
Fri Mar 12 07:35:36 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* lib/webrick/config.rb (WEBrick::Config::General): add
|
||||
:DoNotReverseLookup.
|
||||
|
||||
* lib/webrick/server.rb (WEBrick::GenericServer#accept): call
|
||||
do_not_reverse_lookup for each socket if :DoNotReverseLookup
|
||||
is set. [ruby-code:02357]
|
||||
|
||||
Wed Mar 10 22:26:25 2004 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/fileutils.rb (remove_dir): should handle symlink correctly.
|
||||
|
|
|
@ -33,6 +33,7 @@ module WEBrick
|
|||
:StartCallback => nil,
|
||||
:StopCallback => nil,
|
||||
:AcceptCallback => nil,
|
||||
:DoNotReverseLookup => nil,
|
||||
}
|
||||
|
||||
# for HTTPServer, HTTPRequest, HTTPResponse ...
|
||||
|
|
|
@ -90,6 +90,9 @@ module WEBrick
|
|||
@tokens.pop # blocks while no token is there.
|
||||
sock = svr.accept
|
||||
sock.sync = true
|
||||
if @config[:DoNotReverseLookup]
|
||||
sock.do_not_reverse_lookup = true
|
||||
end
|
||||
Utils::set_close_on_exec(sock)
|
||||
th = start_thread(sock, &block)
|
||||
th[:WEBrickThread] = true
|
||||
|
|
Loading…
Reference in a new issue