KevinMGranger / go9p

Automatically exported from code.google.com/p/go9p
Other
0 stars 0 forks source link

io.Copy: i/o count too large #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
file, _ = c.FOpen(flag.Arg(0), p.OREAD)
dst, _ := os.OpenFile("/tmp/test", os.O_RDWR | os.O_CREATE, 0666)
_, ioerr := io.Copy(dst, file)
if ioerr != nil {
  fmt.Printf("Error %s\n", ioerr)
}

Outputs:

Error i/o count too large

I'm not sure, but I think the Msize limit should be handled transparently in 
the client.

Original issue reported on code.google.com by mmikuli...@gmail.com on 6 Jun 2011 at 3:09

GoogleCodeExporter commented 9 years ago
Attaching a patch which solved the problem to me. Possibly there are other 
places where it has to be applied.

Original comment by mmikuli...@gmail.com on 6 Jun 2011 at 3:19

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by lion...@gmail.com on 13 Jun 2011 at 3:46