Bug #1662

1.8.6 + windows + udp socket + ctrl +c -> hang

Added by rogerdpack (Roger Pack) almost 3 years ago. Updated about 1 year ago.

[ruby-core:23938]
Status:Rejected Start date:06/20/2009
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
ruby -v:ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32]

Description

This code

require 'socket'
addr = ['', 33333]  # host, port
UDPSock = UDPSocket.new
UDPSock.bind(addr[0], addr[1])
data, addr = UDPSock.recvfrom(1024)

when run in windows [run it, then hit ctrl+c]
results in a hang, at least for one version of ruby.

History

Updated by rogerdpack (Roger Pack) almost 3 years ago

The good news is this works well in 1.9 [but not 1.8].  I'd probably consider it a low priority, just thought I'd report it for awareness [as in I don't really care if this bug ever gets fixed or not].

Updated by rogerdpack (Roger Pack) over 2 years ago

  • Status changed from Open to Rejected
I don't know if this will be easily possible in 1.8. Marking as closed.

Also available in: Atom PDF