1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

Add explicit DNS timeout

This makes DNS timeouts occur much more quickly and avoid clients with nonfunctional reverse DNS timing out while waiting for a response to their EHLO requests.
هذا الالتزام موجود في:
Grex
2022-08-17 12:13:24 +02:00
ملتزم من قبل GitHub
الأصل 9f0697f194
التزام 6bace2c905

عرض الملف

@@ -105,7 +105,10 @@ module Postal
private
def resolve_hostname
@hostname = Resolv.new.getname(@ip_address) rescue @ip_address
Resolv::DNS.open do |dns|
dns.timeouts = [10,5]
@hostname = dns.getname(@ip_address) rescue @ip_address
end
end
def proxy(data)