mirror of https://github.com/v2ray/v2ray-core
more log
parent
de414de7a2
commit
13b1bf09cf
|
@ -78,9 +78,11 @@ func (this *BufferedWriter) Flush() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *BufferedWriter) FlushWithoutLock() error {
|
func (this *BufferedWriter) FlushWithoutLock() error {
|
||||||
|
fmt.Println("BufferedWriter flushing")
|
||||||
defer this.buffer.Clear()
|
defer this.buffer.Clear()
|
||||||
for !this.buffer.IsEmpty() {
|
for !this.buffer.IsEmpty() {
|
||||||
nBytes, err := this.writer.Write(this.buffer.Value)
|
nBytes, err := this.writer.Write(this.buffer.Value)
|
||||||
|
fmt.Printf("BufferedWriting flushed %d bytes.\n", nBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue