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
Looks like readfile needs to be switched to multiple reads.
That makes more sense - ReadFile is trying to create a 15GB slice, and can't (even if your machine is 32 bytes).
Your solution is to manually call Read() multiple times, and process the file bit-by-bit. (Note that if you run read_file while the file is still being downloaded, it will /not/ wait to finish until the whole file is downloaded. Ordinary files can't be used as FIFOs.)
Perhaps the size limitations on slices should be documented in the spec? (Or better, removed? It does feel somewhat artificial.)
Currently gosync fails if upload file size is more than 2GB.
I think the cause is that
ioutil.ReadFile
is called in sync.go : line 173.Reference URL:
https://code.google.com/p/go/issues/detail?id=2743
Here is my results of execution.
Regards
The text was updated successfully, but these errors were encountered: