i am using go-diameter library to write a simple Diameter server. Reading and understanding the basic working through the example files provided i am able to start a Diameter server and it is serving requests as expected.
The only issue i am facing is how to stop the server. I searched through whole source code but i didn't find any explicit way to graceful stop the server so that it can return from ListenAndServer.. functions.
diam.ListenAndServe(addr, handler, nil)
i liked the mux logic they have implemented so i preferably don't want to write the bare server (that they have showed in one of the example).