dedis / onet

Overlay Network for distributed protocols
GNU Lesser General Public License v3.0
51 stars 29 forks source link

`ServiceProcessor.RegisterStreamingHandler` fails to return error to the client when failing to start. #669

Open tharvik opened 3 years ago

tharvik commented 3 years ago

When a streaming handler returns a non-nil error, it is logged but the client is not informed of the call's failure.

s.RegisterStreamingHandler(func(*struct{}) (chan *struct{}, chan bool, error) { return nil, nil, errors.New("") })

blocks the client until the channel is closed via timeout.

See #668 for a test case triggering it.