1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Takashi Kokubun 2020-12-29 22:02:46 -08:00
parent 8e231ffa8c
commit 15c129d087
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -29,6 +29,17 @@ module Net
end
def setup
# Avoid hanging at fake_server_start's IO.select on --jit-wait CI like http://ci.rvm.jp/results/trunk-mjit-wait@phosphorus-docker/3302796
# Unfortunately there's no way to configure read_timeout for Net::SMTP.start.
if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled?
Net::SMTP.prepend Module.new {
def initialize(*)
super
@read_timeout *= 5
end
}
end
@server_threads = []
end