mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 02:47:51 +01:00
UDT: closing messageOut results into too fast closing. Don't close it for now as an ugly bush fix.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user