<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/socket, branch ruby_3_0</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) c0f4e4ca6d0f76985bca79314b232b787c8f008e: [Backport #18007]</title>
<updated>2021-09-05T05:55:14+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2021-09-05T05:55:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c42208f8e24402fe1aa8747901fba275bfb0d56b'/>
<id>c42208f8e24402fe1aa8747901fba275bfb0d56b</id>
<content type='text'>
	undefine alloc functions for C extensions

	per guidance in doc/extension.rdoc, these classes now undefine their
	alloc functions:

	- ObjectSpace::InternalObjectWrapper
	- Socket::Ifaddr
	---
	 ext/objspace/objspace.c | 1 +
	 ext/socket/ifaddr.c     | 1 +
	 2 files changed, 2 insertions(+)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	undefine alloc functions for C extensions

	per guidance in doc/extension.rdoc, these classes now undefine their
	alloc functions:

	- ObjectSpace::InternalObjectWrapper
	- Socket::Ifaddr
	---
	 ext/objspace/objspace.c | 1 +
	 ext/socket/ifaddr.c     | 1 +
	 2 files changed, 2 insertions(+)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix compile error of sockssocket</title>
<updated>2021-01-24T09:33:20+00:00</updated>
<author>
<name>Masaki Matsushita</name>
<email>glass.saga@gmail.com</email>
</author>
<published>2020-12-29T06:40:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=21340303c2007117ba39a7012eb6ea609b946704'/>
<id>21340303c2007117ba39a7012eb6ea609b946704</id>
<content type='text'>
The patch is provided by PhobosK (Phobos Kappa).

This should be backported to Ruby 3.0.

[Feature #17187]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The patch is provided by PhobosK (Phobos Kappa).

This should be backported to Ruby 3.0.

[Feature #17187]
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed rb_cData entity</title>
<updated>2020-12-21T17:51:49+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-12-21T16:00:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8918a9cf6c65409ae1ffcdea324a1b97c6e5bb70'/>
<id>8918a9cf6c65409ae1ffcdea324a1b97c6e5bb70</id>
<content type='text'>
* Use the wrapper of rb_cObject instead of data access
* Replaced rest of extentions
* Updated the version guard for Data
* Added the version guard of rb_cData
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use the wrapper of rb_cObject instead of data access
* Replaced rest of extentions
* Updated the version guard for Data
* Added the version guard of rb_cData
</pre>
</div>
</content>
</entry>
<entry>
<title>socket is ractor-safe.</title>
<updated>2020-12-18T02:23:34+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2020-12-18T02:23:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a07f2498031d5f4c53ddc03d61a8a41a6b77baca'/>
<id>a07f2498031d5f4c53ddc03d61a8a41a6b77baca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unimplemented parameter from comment</title>
<updated>2020-12-11T02:13:24+00:00</updated>
<author>
<name>Masaki Matsushita</name>
<email>glass.saga@gmail.com</email>
</author>
<published>2020-12-11T02:13:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=56918578ea48ef3bc6a5f27f884fb2cccbe02c06'/>
<id>56918578ea48ef3bc6a5f27f884fb2cccbe02c06</id>
<content type='text'>
:resolv_timeout of TCPSocket.new is not implemented for now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
:resolv_timeout of TCPSocket.new is not implemented for now.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add connect_timeout to TCPSocket</title>
<updated>2020-12-10T11:52:29+00:00</updated>
<author>
<name>Masaki Matsushita</name>
<email>glass.saga@gmail.com</email>
</author>
<published>2020-09-25T07:20:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=78f188524f551c97b1a7a44ae13514729f1a21c7'/>
<id>78f188524f551c97b1a7a44ae13514729f1a21c7</id>
<content type='text'>
Add connect_timeout to TCPSocket.new in the same way as Socket.tcp.

Closes [Feature #17187]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add connect_timeout to TCPSocket.new in the same way as Socket.tcp.

Closes [Feature #17187]
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert getaddrinfo_a()</title>
<updated>2020-12-07T04:33:53+00:00</updated>
<author>
<name>Masaki Matsushita</name>
<email>glass.saga@gmail.com</email>
</author>
<published>2020-12-07T03:49:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5d8bcc4870601ab1ee05346346f241d4a805aac9'/>
<id>5d8bcc4870601ab1ee05346346f241d4a805aac9</id>
<content type='text'>
getaddrinfo_a() gets stuck after fork().
To avoid this, we need 1 second sleep to wait for internal
worker threads of getaddrinfo_a() to be finished, but that is unacceptable.

[Bug #17220] [Feature #17134] [Feature #17187]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
getaddrinfo_a() gets stuck after fork().
To avoid this, we need 1 second sleep to wait for internal
worker threads of getaddrinfo_a() to be finished, but that is unacceptable.

[Bug #17220] [Feature #17134] [Feature #17187]
</pre>
</div>
</content>
</entry>
<entry>
<title>Call cleanup function for getaddrinfo_a(3) only before fork()</title>
<updated>2020-12-05T16:32:43+00:00</updated>
<author>
<name>Masaki Matsushita</name>
<email>glass.saga@gmail.com</email>
</author>
<published>2020-12-05T16:16:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=76439eee68d2f1e56ac7a6ab38aceacf0b4b40c8'/>
<id>76439eee68d2f1e56ac7a6ab38aceacf0b4b40c8</id>
<content type='text'>
Previously, rb_getaddrinfo_a_before_exec() is called from before_exec().
However, the function needs to be called only before fork().
The change moves it to before_fork().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, rb_getaddrinfo_a_before_exec() is called from before_exec().
However, the function needs to be called only before fork().
The change moves it to before_fork().
</pre>
</div>
</content>
</entry>
<entry>
<title>Extend sleep time to 1.5 second in rb_getaddrinfo_a_before_exec()</title>
<updated>2020-12-05T16:01:13+00:00</updated>
<author>
<name>Masaki Matsushita</name>
<email>glass.saga@gmail.com</email>
</author>
<published>2020-12-05T09:05:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c56a1c1953bf25581a6a0cd4ade22d2691a920e0'/>
<id>c56a1c1953bf25581a6a0cd4ade22d2691a920e0</id>
<content type='text'>
After 94d49ed31c, TestSocket#test_getaddrinfo_after_fork fails in some
platforms. To avoid this, the change extends sleep time to 1.5 second.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After 94d49ed31c, TestSocket#test_getaddrinfo_after_fork fails in some
platforms. To avoid this, the change extends sleep time to 1.5 second.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a hook before fork() for getaddrinfo_a()</title>
<updated>2020-12-04T14:31:51+00:00</updated>
<author>
<name>Masaki Matsushita</name>
<email>glass.saga@gmail.com</email>
</author>
<published>2020-11-26T07:07:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=94d49ed31c39002335eeee65d42463139f561954'/>
<id>94d49ed31c39002335eeee65d42463139f561954</id>
<content type='text'>
We need stop worker threads in getaddrinfo_a() before fork().
This change adds a hook before fork() that cancel all outstanding requests
and wait for all ongoing requests. Then, it waits for all worker
threads to be finished.

Fixes [Bug #17220]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need stop worker threads in getaddrinfo_a() before fork().
This change adds a hook before fork() that cancel all outstanding requests
and wait for all ongoing requests. Then, it waits for all worker
threads to be finished.

Fixes [Bug #17220]
</pre>
</div>
</content>
</entry>
</feed>
