fiorix / go-diameter

Diameter stack and Base Protocol (RFC 6733) for the Go programming language
Other
252 stars 143 forks source link

Missing Handshake Notifications in channel #180

Open SX91 opened 1 year ago

SX91 commented 1 year ago

Hello! I've used the approach similar to the proposed one here, but sometimes the connected peer is not being registered. Seems like it happens because the StateMachine.hsNotifyc is created as unbuffered channel, and writes to this channel are non-blocking (select + default), thus "skipping" some notifications if the receiver is "slow".

Any suggestions how to make notifications reliable?