Skip to content

Commit f45b1e3

Browse files
authored
Update NEWS.md for Socket (ruby#15608)
1 parent bd4353b commit f45b1e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ Note: We're only listing outstanding class updates.
224224

225225
* `Socket.tcp` & `TCPSocket.new` accepts an `open_timeout` keyword argument to specify
226226
the timeout for the initial connection. [[Feature #21347]]
227+
* When a user-specified timeout occurred in `TCPSocket.new`, either `Errno::ETIMEDOUT`
228+
or `IO::TimeoutError` could previously be raised depending on the situation.
229+
This behavior has been unified so that `IO::TimeoutError` is now consistently raised.
230+
(Please note that, in `Socket.tcp`, there are still cases where `Errno::ETIMEDOUT` may
231+
be raised in similar situations.)
227232

228233
* String
229234

0 commit comments

Comments
 (0)