frostfs-http-gw/downloader
Alex Vanin 1e3df95eed [#145] Use application context in NeoFS API requests
It is meaningless to use RequestCtx as a context.Context
for NeoFS operation, because context won't be closed
until application shutdown. Moreover, it also triggers
data race detection, because server's done channel, which
is accessible for reading from RequestCtx, is set to `nil`.

Using application context doesn't change gateway behavior,
but it suppresses data race trigger at shutdown. It also
allows possibility to set configurable timeouts for NeoFS
networking if we will ever need them.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2022-04-22 15:33:11 +04:00
..
download.go [#145] Use application context in NeoFS API requests 2022-04-22 15:33:11 +04:00
download_test.go [#111] Fix expiration epoch headers 2021-12-09 16:12:13 +03:00
head.go [#145] Use application context in NeoFS API requests 2022-04-22 15:33:11 +04:00
reader_test.go [#128] downloader: Simplify detecting the Content-Type from payload 2022-03-04 13:43:34 +03:00