Skip to content

Unititialized attribute makes the protocol hang forever #644

@nkcr

Description

@nkcr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions