Closed agnivade closed 7 years ago
In client.go
, you should close the socket before ending the program, or the server may not receive the END
message.
But then: remove sending the END
message, so the server keeps running. Start the client, and after it finished, start it again, and notice the access is denied.
AuthPlainRemove only effects new connections, not connections that have already been given access. I think this is how it is supposed to work.
AuthPlainRemove only effects new connections, not connections that have already been given access.
Ah, so that is a problem. So what is the cleanest way to close and re-create a connection ? Or how do I tell the client that it is no longer authenticated ?
I don't know. Depends on the situation. Perhaps you best ask the mailing list. http://zeromq.org/docs:mailing-lists
Thanks. Will do !
Hi there,
I have been trying to setup a secure zmq communication using plain auth. I want to be able to dynamically add and remove users without restarting my service. However, when I do
zmq.AuthPlainRemove
, the service keeps on running as if nothing has changed.Here is my server.go -
And client.go -
This is the output that I see on the server side -
I expect the server to stop allowing messages after
zmq.AuthPlainRemove
is executed. But that does not seem to happen. Am I missing something ?