<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/socket/init.c, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Add host information to timeout error messages in `TCPSocket.new` and `Socket.tcp` (#15582)</title>
<updated>2025-12-17T07:16:32+00:00</updated>
<author>
<name>Misaki Shioi</name>
<email>31817032+shioimm@users.noreply.github.com</email>
</author>
<published>2025-12-17T07:16:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=54d3945ee53fa29186c6aa44f673a3a5ec3b38d9'/>
<id>54d3945ee53fa29186c6aa44f673a3a5ec3b38d9</id>
<content type='text'>
This change adds host information to the error messages shown when a timeout occurs while passing timeout options to `TCPSocket.new` or `Socket.tcp`, for improved usability.
(When the `fast_fallback option` is enabled, there may be multiple possible destinations, so the host name is shown instead of an IP address.)

As part of this change, the error messages in `Addrinfo.getaddrinfo` and `Addrinfo#connect_internal`, both of which are used by `Socket.tcp`, have also been improved in the same way.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change adds host information to the error messages shown when a timeout occurs while passing timeout options to `TCPSocket.new` or `Socket.tcp`, for improved usability.
(When the `fast_fallback option` is enabled, there may be multiple possible destinations, so the host name is shown instead of an IP address.)

As part of this change, the error messages in `Addrinfo.getaddrinfo` and `Addrinfo#connect_internal`, both of which are used by `Socket.tcp`, have also been improved in the same way.</pre>
</div>
</content>
</entry>
<entry>
<title>Improve doc for `Socket::ResolutionError` (#12434)</title>
<updated>2024-12-23T06:05:00+00:00</updated>
<author>
<name>Misaki Shioi</name>
<email>31817032+shioimm@users.noreply.github.com</email>
</author>
<published>2024-12-23T06:05:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=34e6bb48af2814eefd91968c58c1dede3b56f30e'/>
<id>34e6bb48af2814eefd91968c58c1dede3b56f30e</id>
<content type='text'>
Also, a topic about Socket::ResolutionError is added to NEWS</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, a topic about Socket::ResolutionError is added to NEWS</pre>
</div>
</content>
</entry>
<entry>
<title>Support `IO#timeout` for `rsock_connect`. (#11880)</title>
<updated>2024-10-11T21:08:34+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2024-10-11T21:08:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ad5641fd3424790789871300b7c0dd6c069f3614'/>
<id>ad5641fd3424790789871300b7c0dd6c069f3614</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update `rsock_connect` to take `VALUE io` argument. (#11847)</title>
<updated>2024-10-11T05:36:11+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2024-10-11T05:36:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c43be94f76982d3ffa2ecd28d34172600b81ca31'/>
<id>c43be94f76982d3ffa2ecd28d34172600b81ca31</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update `Socket#recvfrom` to use `rb_io_blocking_region`.</title>
<updated>2024-10-09T10:48:53+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2024-10-09T08:55:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=438ef21a9b50815f645a324e3d8950750467fd29'/>
<id>438ef21a9b50815f645a324e3d8950750467fd29</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update `Socket#accept` to use `rb_io_blocking_region`.</title>
<updated>2024-10-09T10:48:53+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2024-10-09T08:52:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=04ddb7e8084aa2fdb07ca4da2b4369cca275c1d9'/>
<id>04ddb7e8084aa2fdb07ca4da2b4369cca275c1d9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop using rb_str_locktmp_ensure publicly</title>
<updated>2024-02-23T19:08:29+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2024-02-23T16:05:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ce8531fed4c7295aee94d24124914441db578136'/>
<id>ce8531fed4c7295aee94d24124914441db578136</id>
<content type='text'>
rb_str_locktmp_ensure is a private API.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rb_str_locktmp_ensure is a private API.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Add Socket::ResolutionError documentation</title>
<updated>2023-12-17T23:49:06+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-12-17T23:49:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0601bce6fc57cef5ae22a944b15b8e9fca1ef6ef'/>
<id>0601bce6fc57cef5ae22a944b15b8e9fca1ef6ef</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust indent [ci skip]</title>
<updated>2023-11-30T04:32:53+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-11-30T04:32:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ac9fdb7a50946a2b2013eefd0cb137428715ccc0'/>
<id>ac9fdb7a50946a2b2013eefd0cb137428715ccc0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename rsock_raise_socket_error to rsock_raise_resolution_error</title>
<updated>2023-11-30T04:27:19+00:00</updated>
<author>
<name>Misaki Shioi</name>
<email>shioi.mm@gmail.com</email>
</author>
<published>2023-11-23T07:52:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5f62b1d00ce8ca56ad624963ebdf01c572e73efc'/>
<id>5f62b1d00ce8ca56ad624963ebdf01c572e73efc</id>
<content type='text'>
Again, rsock_raise_socket_error is called only when getaddrinfo and getaddrname fail
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Again, rsock_raise_socket_error is called only when getaddrinfo and getaddrname fail
</pre>
</div>
</content>
</entry>
</feed>
