You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem. Thanks.
What steps will reproduce the problem?
Compile and run the attached program (it will create files "/tmp/foo.txt"
and "/tmp/foo.tar").
What is the expected output? What do you see instead?
It should print "Read 0 bytes" and exit. Instead it hangs forever on the
line "data, _ := ioutil.ReadAll(tr)"
What is your $GOOS? $GOARCH?
linux 386
Which revision are you using? (hg identify)
683ed10f7832 tip
Please provide any additional information below.
This does work in place of ioutil.ReadAll(tr):
header, err := tr.Next()
data = make([]byte, header.Size)
n, err2 := io.ReadFull(tr, data)
Attachments:
The text was updated successfully, but these errors were encountered: