about summary refs log tree commit homepage
path: root/lib/dtas/player/client_handler.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-04 06:22:19 +0000
committerEric Wong <e@80x24.org>2024-01-27 22:18:29 +0000
commit5839a311299c9dd628bcb1b97c5458a325c548d5 (patch)
treea89af4b0c90821395aecc5d618bdd586069eb17d /lib/dtas/player/client_handler.rb
parentb8f99198b49c162920f2c28e0aa0da4eff8f14a7 (diff)
downloaddtas-5839a311299c9dd628bcb1b97c5458a325c548d5.tar.gz
Using MSG_EOR with these local sockets is not necessary, and
appears to trigger a truncation bug on OpenBSD 7.3.

Link: https://marc.info/?i=20230826020759.M335788@dcvr
Diffstat (limited to 'lib/dtas/player/client_handler.rb')
-rw-r--r--lib/dtas/player/client_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb
index 2914fe7..3c5fe5d 100644
--- a/lib/dtas/player/client_handler.rb
+++ b/lib/dtas/player/client_handler.rb
@@ -564,7 +564,7 @@ module DTAS::Player::ClientHandler # :nodoc:
         rescue => e
           res = "ERR dumping to #{xs(sf.path)} #{e.message}"
         end
-        io.to_io.send(res, Socket::MSG_EOR)
+        io.to_io.send(res, 0)
       ensure
         exit!(0)
       end