Skip to content

Experiment with Go http#3973

Draft
roman-khimov wants to merge 4 commits into
masterfrom
go-http
Draft

Experiment with Go http#3973
roman-khimov wants to merge 4 commits into
masterfrom
go-http

Conversation

@roman-khimov
Copy link
Copy Markdown
Member

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

❌ Patch coverage is 0% with 299 lines in your changes missing coverage. Please review.
✅ Project coverage is 28.18%. Comparing base (31835d3) to head (d781e28).

Files with missing lines Patch % Lines
pkg/services/object/server.go 0.00% 201 Missing ⚠️
cmd/neofs-node/grpc.go 0.00% 43 Missing ⚠️
pkg/network/cache/clients.go 0.00% 30 Missing ⚠️
pkg/services/object/get.go 0.00% 22 Missing ⚠️
cmd/neofs-node/config.go 0.00% 1 Missing ⚠️
cmd/neofs-node/netmap.go 0.00% 1 Missing ⚠️
cmd/neofs-node/object.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3973      +/-   ##
==========================================
- Coverage   28.34%   28.18%   -0.17%     
==========================================
  Files         681      681              
  Lines       45756    46016     +260     
==========================================
  Hits        12969    12969              
- Misses      31555    31815     +260     
  Partials     1232     1232              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roman-khimov
Copy link
Copy Markdown
Member Author

What we need here is to finish this prototype with an end-to-end GET data transport over HTTP, from S3 gateway (additional branch there) to SN. Many things can be improved here performance-wise, but we're interested in a quick prototype first, so many of object service internals are still left as is and just two proto-encoded byte arrays are pushed to the client (that needs to parse them).

roman-khimov and others added 4 commits May 22, 2026 19:26
Let's see how it goes.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
Signed-off-by: Roman Khimov <roman@nspcc.ru>
Accept protobufs, reply with protobufs. TODO:
 * deal with TTL/new requests (create new ones signed by container node)
 * create new requests for EC parts
 * create and handle them client-side

Signed-off-by: Roman Khimov <roman@nspcc.ru>
- implement copyHTTPStream.
- GetHTTP: read body with io.ReadAll, emit apistatus.Status protobuf in non-200
responses, map errors to 4xx/5xx.
- continueHTTP: normalize peer URI scheme, set Content-Type, surface non-200
upstream status.
- network/cache: h2c http.Client for inter-SN forwarder.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants