Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending without receipt to ActiveMQ ends up in closed connection after a timeout #130

Open
akamensky opened this issue Dec 18, 2023 · 0 comments

Comments

@akamensky
Copy link

akamensky commented Dec 18, 2023

Running a tcpdump it looks like it does not send any heartbeats if there are no messages, but not sure why if I enable receipt it does not close the connection.

This will result in closed connection panic after 60s:

	for true {
		msg := []byte("test")
		if err := conn.Send(queue, "", msg, stomp.SendOpt.NoContentLength); err != nil {
			panic(err)
		}
		time.Sleep(30 * time.Second)
	}

This will run just fine indefinitely:

	for true {
		msg := []byte("test")
		if err := conn.Send(queue, "", msg, stomp.SendOpt.NoContentLength, stomp.SendOpt.Receipt); err != nil {
			panic(err)
		}
		time.Sleep(30 * time.Second)
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant