-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: Do not open no-op sessions with storage nodes
Currently, there are only two NeoFS operations supporting sessions: object creation (PUT) and removal (DELETE). The latter is essentially creation of the tombstone object. Sessions are used in cases when client requests trusted storage node to form an object and sign it via so-called private session key. Public part of this key is signed by original client in the attached session token. This makes no sense for any other op because server does nothing on behalf of the client, it just executes his request. Previously, pool of NeoFS clients could open session for any object op incl. reading ones. As said, this broke nothing, but was completely redundant. This drops session opening for any op except PUT/DELETE to increase pool's efficiency and relieve network pressure. Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
- Loading branch information
1 parent
5cdc80d
commit 543ebdc
Showing
2 changed files
with
561 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.