-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
I have the following code to write messages to zeromq from a writer
func ZQServerStart(endChannel chan bool) {
// Create a new REP (Reply) socket
server := zmq4.NewPull(context.Background())
defer server.Close()
endpoint := config.GetEndPoint()
if err := server.Listen(endpoint); err != nil {
log.Fatalf("Failed to bind server: %v", err)
}
fmt.Printf("Server listening on %s\n", endpoint)
clean := <-endChannel
fmt.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.
func ZQServerStart(endChannel chan bool) {
// Create a new REP (Reply) socket
server := zmq4.NewPull(context.Background())
defer server.Close()
endpoint := config.GetEndPoint()
if err := server.Listen(endpoint); err != nil {
log.Fatalf("Failed to bind server: %v", err)
}
fmt.Printf("Server listening on %s\n", endpoint)
clean := <-endChannel
fmt.Println("Server shutting down");
if (!clean) {
log.Fatalf("Server did not shut down cleanly")
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels