From b3f1293f3c85e4f4264a3f12f46b211bb17327b0 Mon Sep 17 00:00:00 2001 From: Kleissner Date: Tue, 14 Dec 2021 01:20:16 +0100 Subject: [PATCH] UDT: closing messageOut results into too fast closing. Don't close it for now as an ugly bush fix. --- udt/udtsocket.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/udt/udtsocket.go b/udt/udtsocket.go index 0a2f686..a7a6c52 100644 --- a/udt/udtsocket.go +++ b/udt/udtsocket.go @@ -303,7 +303,9 @@ func (s *udtSocket) Close() error { s.isClosed = true - close(s.messageOut) + // closing messageOut was a signal supposed to tell the send code to initiate shutdown. However, it closes too fast before all data is transferred. + // The entire UDT code is a piece of !@#$ and needs a rewrite. + //close(s.messageOut) return nil }