From 110046f5a88daebfdebba86d0652e5d01254c27e Mon Sep 17 00:00:00 2001
From: Jeremy Fee <jmfee@usgs.gov>
Date: Thu, 25 Mar 2021 16:20:51 -0600
Subject: [PATCH] Use buf.getvalue() instead of buf.read() to send miniseed

---
 geomagio/edge/MiniSeedInputClient.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/geomagio/edge/MiniSeedInputClient.py b/geomagio/edge/MiniSeedInputClient.py
index 0e6a20728..65949dd8d 100644
--- a/geomagio/edge/MiniSeedInputClient.py
+++ b/geomagio/edge/MiniSeedInputClient.py
@@ -73,4 +73,4 @@ class MiniSeedInputClient(object):
         buf = io.BytesIO()
         stream.write(buf, format="MSEED")
         # send data
-        self.socket.sendall(buf.read())
+        self.socket.sendall(buf.getvalue())
-- 
GitLab