diff options
author | Masaki Matsushita <glass.saga@gmail.com> | 2020-09-25 15:47:47 +0900 |
---|---|---|
committer | Masaki Matsushita <glass.saga@gmail.com> | 2020-09-25 15:47:47 +0900 |
commit | 97416ae54cebe8bd4c77da5301b82509ec43aaf2 (patch) | |
tree | 7e05c2ccdb206146c6a4dafa332a5b75a65d2a27 /NEWS.md | |
parent | f2d1808e7364aa909101c5208086ef026d5367a2 (diff) | |
download | ruby-97416ae54cebe8bd4c77da5301b82509ec43aaf2.tar.gz |
Describe resolv_timeout in NEWS
Diffstat (limited to 'NEWS.md')
-rw-r--r-- | NEWS.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -267,6 +267,15 @@ Outstanding ones only. * 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. |