From: Urabe Shyouhei Date: 2009-07-22T22:31:44+09:00 Subject: [ruby-core:24504] Re: [Bug #1805] UDPSocket#recvfrom hangs This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7D6C1E0C679B0BFC0A3BA362 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Daniel Berger wrote: > ruby -v: ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin8.11.1]= >=20 > The following code raises an error in 1.8.x, but hangs in 1.9.x: Can't confirm on my machine. Maybe a problem of darwin specific? zsh % ruby -ve" zsh > require 'socket' zsh > udp =3D UDPSocket.open zsh > udp.connect('127.0.0.1', 7) zsh > udp.send('ping', 0) zsh > array =3D udp.recvfrom(64) zsh > " ruby 1.9.2dev (2009-07-22 trunk 24241) [x86_64-linux] -e:6:in `recvfrom': Connection refused - recvfrom(2) (Errno::ECONNREFUSED= ) from -e:6:in `
' zsh: exit 1 ~/target/trunk/bin/ruby --------------enig7D6C1E0C679B0BFC0A3BA362 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpnFKYACgkQuTXPUnA5eMKn6QCdE+DQN/ep9oOhyMMEnV9QEgp8 HJwAnA74+BeEUYSSx6NzGvnOkwMAres0 =2yxA -----END PGP SIGNATURE----- --------------enig7D6C1E0C679B0BFC0A3BA362--