hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

[BUG] As many WebSocket ERRORs as transactions handled #5004

Closed s8sato closed 2 weeks ago

s8sato commented 2 months ago

OS and Environment

Linux, test_env.py

GIT commit hash

76dafdc

Minimum working example / Steps to reproduce

Prepare transaction.json (example) with a few instructions and,

git checkout 76dafdc
cargo build
LOG_LEVEL=ERROR ./scripts/test_env.py setup
cd test
while true; do curl http://127.0.0.1:8080/status; cat transaction.json | ./iroha json transaction &; sleep 0.5; done

Actual result

On block commit, peer logs as many WebSocket ERRORs as the transactions it has handled during the round.

test/peers/iroha0/log.txt

  2024-08-22T15:26:03.287294Z ERROR iroha_torii: Failure during event streaming, error: WebSocket error: WebSocket protocol error: Sending after closing is not allowed
    at torii/src/lib.rs:215

This is not seen in other peers

Expected result

There should be no ERROR level logs in normal use

Logs

See Actual result section

Who can help to reproduce?

@s8sato

Notes

No response