nspcc-dev/neofs-node

`neofs-cli` default timeouts for `object put`/`object get`/etc are implicit

開放

#2,393 建立於 2023年6月19日

 (5 則留言) (0 個反應) (0 位負責人)Go (49 個分叉)auto 404
I3S4U3discussionhelp wantedneofs-cli

倉庫指標

星標
 (36 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

After https://github.com/nspcc-dev/neofs-node/pull/2135 a user can see the following (15-sec default timeout that did not exist before):

▶ neofs-cli object put -r s01.neofs.devenv:8080 -w services/chain/node-wallet.json --cid HrG4qXKc3fpvY1dBay4Jy4qtDgGbwEnDtikDUJTegZJi --file tmp/test.file 
Enter password > 
 276824064 / 10000000000 [=======>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]   2.77% 12s
rpc error: client failure: rpc error: code = DeadlineExceeded desc = context deadline exceeded

as a user, I would ask some questions:

  1. "rpc error:"? Really? Network error? The node is down?
  2. I have the progress bar, I see how it works and nothing is frozen, I control it and can send SIGINT if I want to. Why 15-sec timeout is forced? "Any object should be put in 15 seconds" is smth unnatural for a util (at least by default when a progress bar is active).
  3. Why doesn't it work the same as wget/curl?

cc @532910, @MaxGelbakhiani, @aprasolova, @vvarg229

貢獻者指南