mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-03 16:24:04 +00:00
Close connection more aggressively.
This commit is contained in:
1 parent
64103229d6
commit
a78dbe7133
5 files changed
+45
-13
No files matched your search
@@ -27,9 +27,6 @@ func (reader CryptionReader) Read(blocks []byte) (int, error) {
|
||||
if nBytes > 0 {
|
||||
reader.stream.XORKeyStream(blocks[:nBytes], blocks[:nBytes])
|
||||
}
|
||||
if err != nil && err != io.EOF {
|
||||
log.Error("Error reading blocks: %v", err)
|
||||
}
|
||||
return nBytes, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user