1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merge revision(s) d0a05fd4b4:

Fixed FD leaks

	---
	 test/socket/test_tcp.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)
This commit is contained in:
nagachika 2021-11-06 17:37:22 +09:00
parent 75e7499391
commit 6d540c1b98
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase
Thread.new { server.accept.close } Thread.new { server.accept.close }
end end
client_threads = Array.new(client_threads_count) do client_threads = Array.new(client_threads_count) do
Thread.new { TCPSocket.open(server.addr[3], server.addr[1]) } Thread.new { TCPSocket.open(server.addr[3], server.addr[1]) {} }
end end
client_threads.each(&:join) client_threads.each(&:join)
accept_threads.each(&:join) accept_threads.each(&:join)

View file

@ -12,7 +12,7 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 3 #define RUBY_VERSION_TEENY 3
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
#define RUBY_PATCHLEVEL 149 #define RUBY_PATCHLEVEL 150
#define RUBY_RELEASE_YEAR 2021 #define RUBY_RELEASE_YEAR 2021
#define RUBY_RELEASE_MONTH 11 #define RUBY_RELEASE_MONTH 11