mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
dns: SetDeadline for all remote connection
This commit is contained in:
1 parent
515a5dffa5
commit
14b072832d
4 files changed
+6
-5
No files matched your search
@@ -208,7 +208,9 @@ func (c *Conn) DecodeRespHeader() error {
|
||||
|
||||
stream := cipher.NewCFBDecrypter(block, c.respBodyIV[:])
|
||||
buf := make([]byte, 4)
|
||||
io.ReadFull(c.Conn, buf)
|
||||
if _, err := io.ReadFull(c.Conn, buf); err != nil {
|
||||
return err
|
||||
}
|
||||
stream.XORKeyStream(buf, buf)
|
||||
|
||||
if buf[0] != c.reqRespV {
|
||||
|
||||
Reference in new issue
Block a user