We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e5a7b6 commit 71d6095Copy full SHA for 71d6095
1 file changed
main.go
@@ -8,6 +8,7 @@ import (
8
"encoding/json"
9
"errors"
10
"fmt"
11
+ "io"
12
"io/ioutil"
13
"os"
14
"os/signal"
@@ -386,12 +387,12 @@ func main() {
386
387
defer cancelExec()
388
buf := make([]byte, 4)
389
for {
- os.Stdin.Read(buf)
390
+ io.ReadFull(os.Stdin, buf)
391
messageType := binary.BigEndian.Uint32(buf)
392
393
messageLength := binary.BigEndian.Uint32(buf)
394
src := make([]byte, messageLength)
- os.Stdin.Read(src)
395
+ io.ReadFull(os.Stdin, src)
396
switch messageType {
397
case 1:
398
jobreq := &protocol.AgentJobRequestMessage{}
0 commit comments