Procházet zdrojové kódy

non blocking flusing

v2ray před 9 roky
rodič
revize
94d4b02191
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
 }