Merge pull request #6769 from khasinski/fix-socket-recvfrom-nonblock

This commit is contained in:
Yukihiro "Matz" Matsumoto
2026-04-01 09:23:00 +09:00
committed by GitHub
+1 -3
View File
@@ -701,13 +701,11 @@ class UDPSocket < IPSocket
# data, addr = sock.recvfrom_nonblock(1024)
#
def recvfrom_nonblock(*args)
s = self
begin
self._setnonblock(true)
self.recvfrom(*args)
ensure
# XXX: self is a SystemcallException here! (should be bug)
s._setnonblock(false)
self._setnonblock(false)
end
end