Project

General

Profile

Actions

Bug #1805

closed

UDPSocket#recvfrom hangs

Added by djberg96 (Daniel Berger) almost 15 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin8.11.1]
Backport:
[ruby-core:24502]

Description

=begin
The following code raises an error in 1.8.x, but hangs in 1.9.x:

require 'socket'
udp = UDPSocket.open
udp.connect('127.0.0.1', 7)
udp.send('ping', 0)
array = udp.recvfrom(64)
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0