Browse Source

non blocking flusing

v2ray 9 years ago
parent
commit
94d4b02191
1 changed files with 1 additions and 1 deletions
  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
 }