onet icon indicating copy to clipboard operation
onet copied to clipboard

Unititialized attribute makes the protocol hang forever

Open nkcr opened this issue 5 years ago • 0 comments

When implementing a new protocol in Onet I forgot to initialize the chan that sends back the response to the service. In this case, I would expect the service and/or protocol to fail and output an error, but it just waits forever.

How to reproduce

Clone the cothority_template, in protocol/protocol.go remove line 43 ChildCount: make(chan int),. Then, launch the protocol's or service's tests. The tests will just hang.

nkcr avatar Jun 04 '20 07:06 nkcr