зеркало из https://github.com/github/ruby.git
[ruby/webrick] Allow shutdown_pipe to be passed in via @config
https://github.com/ruby/webrick/commit/30152b4bf9
This commit is contained in:
Родитель
c12c7fea70
Коммит
f64bea6d66
|
@ -100,7 +100,7 @@ module WEBrick
|
|||
@logger.info("ruby #{rubyv}")
|
||||
|
||||
@listeners = []
|
||||
@shutdown_pipe = nil
|
||||
@shutdown_pipe = @config[:ShutdownPipe]
|
||||
unless @config[:DoNotListen]
|
||||
raise ArgumentError, "Port must an integer" unless @config[:Port].to_s == @config[:Port].to_i.to_s
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче