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

Add abilitiy to set host bind port. #331

Closed
akessler1ctr opened this issue Oct 5, 2020 · 1 comment
Closed

Add abilitiy to set host bind port. #331

akessler1ctr opened this issue Oct 5, 2020 · 1 comment

Comments

@akessler1ctr
Copy link

akessler1ctr commented Oct 5, 2020

0001-add-host-binding-for-containers.zip

To run stomp.py in a container we need to expose the host's port to communicate with external brokers. The socket.create_connection function supports doing this as the third parameter source_address. Either using functions to pass the host,port tuple thru the connection's init or another function to set the port before we do the connect would fix this issue.

Attached patch of passing host tuple through connection classes to transport class

@jasonrbriggs
Copy link
Owner

Added as of v7.0.0

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

2 participants