See attached main.go file:
- it stored 1024 bytes of random data to the database
- then it loads the whole file (all the 1024 bytes) at once
- after that when calling Read on DownloadStream it returns 0 bytes read and no error
- another call results with 0 bytes read and EOF error
I would expect that second call of Read should return (0, EOF) as the first one already read all the data.
- backported by
-
GODRIVER-1140 Backport "When reading whole file at once next read doesn't return EOF"
- Closed