diff options
author | Eric Wong <e@80x24.org> | 2015-06-16 00:31:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-06-16 00:31:50 +0000 |
commit | a1fe61ba7ce028b2b904b8ee90bcfb47c73bc6c6 (patch) | |
tree | fe99b7ff7d86a354ff8701a0fc84e635556353db /lib/dtas/unix_client.rb | |
parent | 089c963e018424ef0a88ceb884dff86e81f49e13 (diff) | |
download | dtas-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_client.rb')
-rw-r--r-- | lib/dtas/unix_client.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/unix_client.rb b/lib/dtas/unix_client.rb index fbb1510..2c8ba43 100644 --- a/lib/dtas/unix_client.rb +++ b/lib/dtas/unix_client.rb @@ -41,6 +41,6 @@ class DTAS::UNIXClient # :nodoc: IO.select([@to_io], nil, nil, timeout) nr = @to_io.nread nr > 0 or raise EOFError, "unexpected EOF from server" - @to_io.recvmsg(nr, 0, 0)[0] + @to_io.recv(nr) end end |