You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following code to write messages to zeromq from a writer
funcZQServerStart(endChannelchanbool) {
// Create a new REP (Reply) socketserver:=zmq4.NewPull(context.Background())
deferserver.Close()
endpoint:=config.GetEndPoint()
iferr:=server.Listen(endpoint); err!=nil {
log.Fatalf("Failed to bind server: %v", err)
}
fmt.Printf("Server listening on %s\n", endpoint)
clean:=<-endChannelfmt.Println("Server shutting down");
if (!clean) {
log.Fatalf("Server did not shut down cleanly")
}
}
Then I have two other listeners (one written in node and python). They both receive all the messages. When I write a simple push app in python, the messages get round robined correctly.
funcZQServerStart(endChannelchanbool) {
//CreateanewREP (Reply) socketserver:=zmq4.NewPull(context.Background())
deferserver.Close()
endpoint:=config.GetEndPoint()
iferr:=server.Listen(endpoint); err!=nil {
log.Fatalf("Failed to bind server: %v", err)
}
fmt.Printf("Server listening on %s\n", endpoint)
clean:=<-endChannelfmt.Println("Server shutting down");
if (!clean) {
log.Fatalf("Server did not shut down cleanly")
}
}
The text was updated successfully, but these errors were encountered:
I have the following code to write messages to zeromq from a writer
Then I have two other listeners (one written in node and python). They both receive all the messages. When I write a simple push app in python, the messages get round robined correctly.
The text was updated successfully, but these errors were encountered: