1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: The flag for `UDPSocket#recvfrom_nonblock` should be Numeric in Ruby 2.3
Origin: upstream, https://github.com/celluloid/celluloid-io/commit/8bf7f38e35bffc38cc69dedcb6ce9ec0fceee4c6.patch
Author: Ryunosuke SATO <tricknotes.rs@gmail.com>
Reviewed-by: Cédric Boutillier <boutil@debian.org>
Last-Update: 2016-03-03
---
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)
|