test
This commit is contained in:
parent
9366524ef6
commit
b84c23d6e0
2
main.go
2
main.go
@ -33,6 +33,7 @@ func main() {
|
||||
n, err = r.Read(b[read:])
|
||||
logErrorDebug(err, "r.Read")
|
||||
read += n
|
||||
logInfoDebug("Waiting for packet, read %d bytes.", read)
|
||||
if read >= 3 {
|
||||
break
|
||||
}
|
||||
@ -48,6 +49,7 @@ func main() {
|
||||
n, err = r.Read(b[read:])
|
||||
logErrorDebug(err, "r.Read")
|
||||
read += n
|
||||
logInfoDebug("Waiting for data, read %d/%d bytes.", read, p.PLength)
|
||||
if read >= int(p.PLength) {
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user