about summary refs log tree commit homepage
path: root/lib/dtas/unix_accepted.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-06-16 00:31:50 +0000
committerEric Wong <e@80x24.org>2015-06-16 00:31:50 +0000
commita1fe61ba7ce028b2b904b8ee90bcfb47c73bc6c6 (patch)
treefe99b7ff7d86a354ff8701a0fc84e635556353db /lib/dtas/unix_accepted.rb
parent089c963e018424ef0a88ceb884dff86e81f49e13 (diff)
downloaddtas-a1fe61ba7ce028b2b904b8ee90bcfb47c73bc6c6.tar.gz
We never use the full return value of the recvmsg* methods,
so those allocations are wasted.
Diffstat (limited to 'lib/dtas/unix_accepted.rb')
-rw-r--r--lib/dtas/unix_accepted.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/unix_accepted.rb b/lib/dtas/unix_accepted.rb
index c08d431..a0000cf 100644
--- a/lib/dtas/unix_accepted.rb
+++ b/lib/dtas/unix_accepted.rb
@@ -56,7 +56,7 @@ class DTAS::UNIXAccepted # :nodoc:
 
     begin
       begin
-        msg, _, _ = io.recvmsg_nonblock(nread, 0, 0)
+        msg = io.recv_nonblock(nread)
       rescue Errno::EAGAIN
         return :wait_readable
       rescue EOFError, SystemCallError