frostfs-api-go-pogpp/pkg/client
Alex Vanin 9401724b9c [#246] pkg/client: Use io.Reader wrapper at object put
Object payload transferred in chunks. Size of the
chunks may be limited by transport protocols. To
split it we use `io.CopyBuffer` with pre-allocated
buffer size of one chunk. However this function may
ignore buffer if reader or writer implements
`WriteTo` or `ReadFrom` methods. Unfortunately
`bytes.Reader` implements `WriteTo` function.

To fix this we wrap reader so wrapper implements
only `io.Reader` interface.

Related to github.com/nspcc-dev/neofs-node/issues/338

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2021-01-25 13:25:52 +03:00
..
accounting.go [#205] sdk/client: Support option to set dial timeout 2020-11-23 14:15:42 +03:00
client.go [#199] sdk/client: Correct linter's remarks 2020-11-16 18:51:14 +03:00
client_test.go [#168] sdk/accounting: Refactor Decimal type 2020-11-13 18:07:26 +03:00
container.go [#194] pkg/client: Verify container format in GetContainer method 2020-12-24 12:54:53 +03:00
netmap.go [#205] sdk/client: Support option to set dial timeout 2020-11-23 14:15:42 +03:00
object.go [#246] pkg/client: Use io.Reader wrapper at object put 2021-01-25 13:25:52 +03:00
opts.go [#205] sdk/client: Support option to set dial timeout 2020-11-23 14:15:42 +03:00
session.go [#205] sdk/client: Support option to set dial timeout 2020-11-23 14:15:42 +03:00