mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-18 02:16:10 -05:00
non blocking flusing
This commit is contained in:
parent
b68075a99d
commit
94d4b02191
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user