update README.md

This commit is contained in:
wenyifan
2022-09-08 00:12:01 +08:00
parent a983817b8d
commit c2ab6cbe5f
4 changed files with 29 additions and 25 deletions

View File

@ -24,7 +24,9 @@ func (m PackAppData) Read(p []byte) (n int, err error) {
headRead, err := io.ReadAtLeast(m.Conn, buf[0:HeaderLength+2], HeaderLength+2)
if err != nil {
fmt.Printf("Read header error: %v\n", err)
if err != io.EOF {
fmt.Printf("Read header error: %v\n", err)
}
return 0, err
}
if headRead < HeaderLength+2 {