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:])
|
n, err = r.Read(b[read:])
|
||||||
logErrorDebug(err, "r.Read")
|
logErrorDebug(err, "r.Read")
|
||||||
read += n
|
read += n
|
||||||
|
logInfoDebug("Waiting for packet, read %d bytes.", read)
|
||||||
if read >= 3 {
|
if read >= 3 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -48,6 +49,7 @@ func main() {
|
|||||||
n, err = r.Read(b[read:])
|
n, err = r.Read(b[read:])
|
||||||
logErrorDebug(err, "r.Read")
|
logErrorDebug(err, "r.Read")
|
||||||
read += n
|
read += n
|
||||||
|
logInfoDebug("Waiting for data, read %d/%d bytes.", read, p.PLength)
|
||||||
if read >= int(p.PLength) {
|
if read >= int(p.PLength) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user