[前][次][番号順一覧][スレッド一覧]

ruby-changes:63103

From: Masaki <ko1@a...>
Date: Fri, 25 Sep 2020 15:48:43 +0900 (JST)
Subject: [ruby-changes:63103] 97416ae54c (master): Describe resolv_timeout in NEWS

https://git.ruby-lang.org/ruby.git/commit/?id=97416ae54c

From 97416ae54cebe8bd4c77da5301b82509ec43aaf2 Mon Sep 17 00:00:00 2001
From: Masaki Matsushita <glass.saga@g...>
Date: Fri, 25 Sep 2020 15:47:47 +0900
Subject: Describe resolv_timeout in NEWS


diff --git a/NEWS.md b/NEWS.md
index 5b120f4..73ba494 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -267,6 +267,15 @@ Outstanding ones only. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L267
 
     * Update to Reline 0.1.5
 
+* Socket
+
+    * TCPSocket.new now supports `resolv_timeout`. [[Feature #17134]]
+
+      ```ruby
+      # it raises SocketError if name resolution is not finished within resolve_timeout.
+      tcp_socket = TCPSocket.new("example.com", 80, resolv_timeout: 10)
+      ```
+
 ## Compatibility issues
 
 Excluding feature bug fixes.
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]