mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
more log
This commit is contained in:
parent
de414de7a2
commit
13b1bf09cf
@ -78,9 +78,11 @@ func (this *BufferedWriter) Flush() error {
|
||||
}
|
||||
|
||||
func (this *BufferedWriter) FlushWithoutLock() error {
|
||||
fmt.Println("BufferedWriter flushing")
|
||||
defer this.buffer.Clear()
|
||||
for !this.buffer.IsEmpty() {
|
||||
nBytes, err := this.writer.Write(this.buffer.Value)
|
||||
fmt.Printf("BufferedWriting flushed %d bytes.\n", nBytes)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user