mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-08-08 16:12:18 -04:00
more log
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user