Prechádzať zdrojové kódy

non blocking flusing

v2ray 9 rokov pred
rodič
commit
94d4b02191
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      transport/internet/kcp/output.go

+ 1 - 1
transport/internet/kcp/output.go

@@ -43,7 +43,7 @@ func (this *BufferedSegmentWriter) Write(seg Segment) {
 }
 
 func (this *BufferedSegmentWriter) FlushWithoutLock() {
-	this.writer.Write(this.buffer)
+	go this.writer.Write(this.buffer)
 	this.buffer = nil
 }