mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2026-03-01 04:28:51 +00:00
Panic on channel close in RPC waiter #1585
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U3
U3
U4
blocked
bug
bug
cli
compiler
config
config
consensus
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
neotest
network
oracle
performance
question
rpc
security
smartcontract
task
task
task
test
vm
wallet
windows
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neo-go#1585
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roman-khimov on GitHub (Dec 19, 2025).
Current Behavior
Expected Behavior
No panic.
Possible Solution
Close channels on one side only, if it's WSClient doing it then waiter shouldn't touch them. If channel is unused it'll be garbage-collected anyway.
Steps to Reproduce
Not really known, but can be seen here:
https://rest.fs.neo.org/Aku38wpn2xEqfEPxmwyAa7N3VnAkMV8PEVkpLqwKM1z3/4538-1766148767/index.html#suites/4f5ca4977289636df3b53e1debc15dcf/f14f02e9e604772e/
It looks like some contexts can expire at ~the same time as channel gets closed by WSClient in which case
nilchecks below are not helping much.Regression
Not likely.
Your Environment