From 8bf7f38e35bffc38cc69dedcb6ce9ec0fceee4c6 Mon Sep 17 00:00:00 2001 From: Ryunosuke SATO Date: Thu, 31 Dec 2015 00:44:00 +0900 Subject: [PATCH] The flag for `UDPSpcket#recvfrom_nonblock` should be Numeric in Ruby 2.3 --- lib/celluloid/io/udp_socket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/celluloid/io/udp_socket.rb b/lib/celluloid/io/udp_socket.rb index 290655e..703ab04 100644 --- a/lib/celluloid/io/udp_socket.rb +++ b/lib/celluloid/io/udp_socket.rb @@ -16,7 +16,7 @@ def wait_readable; Celluloid::IO.wait_readable(self); end # MSG_ options. The first element of the results, mesg, is the data # received. The second element, sender_addrinfo, contains # protocol-specific address information of the sender. - def recvfrom(maxlen, flags = nil) + def recvfrom(maxlen, flags = 0) begin if @socket.respond_to? :recvfrom_nonblock @socket.recvfrom_nonblock(maxlen, flags)