Project

General

Profile

Actions

Bug #3928

closed

getaddrinfo: Name or service not known

Bug #3928: getaddrinfo: Name or service not known

Added by SMiX (Andrey Kouznetsov) over 15 years ago. Updated almost 15 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
Ruby 1.9.2 debian 2.6.32-5-686 #1 SMP (i686)
Backport:
[ruby-core:32740]

Description

=begin
Hello. I am having strange error when I am creating lots of TCPSocket objects.
Here is a snippet:

require 'socket'
i = 0
while true do
socket = TCPSocket "google.com", 80
i += 1
puts i
end

On ~ 900 - 1100 iteration I get the error: getaddrinfo: Name or service not known.

Ruby 1.9.2 debian 2.6.32-5-686 #1 SMP (i686)

Sorry I coudn't find how to create this issue with the "bug" tracker.
=end

Actions

Also available in: PDF Atom