浏览代码

non blocking flusing

v2ray 9 年之前
父节点
当前提交
94d4b02191
共有 1 个文件被更改,包括 1 次插入1 次删除
  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() {
 func (this *BufferedSegmentWriter) FlushWithoutLock() {
-	this.writer.Write(this.buffer)
+	go this.writer.Write(this.buffer)
 	this.buffer = nil
 	this.buffer = nil
 }
 }