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

Identify connections #106

Open
alexlep opened this issue Nov 19, 2016 · 0 comments
Open

Identify connections #106

alexlep opened this issue Nov 19, 2016 · 0 comments

Comments

@alexlep
Copy link

alexlep commented Nov 19, 2016

Hi,

Actually I have the same question which is described here, for example.

I'd like to identify each separate connection from remote hosts, and in my code several connections from one IP address are possible, so identifying by IP won't do the trick.

It's possible to pass client internal parameters (like it's described in provided link), but in current rabbitpy implementation it's not possible to pass some custom client params to Connection. Please correct me if I'm wrong.

In rabbitpy client parameters are defined in channel0, method _build_start_ok_frame.
Maybe it's possible to add some connection_id(some randomly generated value) parameter to parameters dictionary? Then this parameter will be present in clients properties, and it will be possible to identify connection id, by means of RabbitMQ WebApi(/api/connections):

{
"auth_mechanism": "PLAIN",
"channels": 1,
"client_properties": {
"capabilities": {
"authentication_failure_close": true,
"basic.nack": true,
"connection.blocked": true,
"consumer_cancel_notify": true,
"publisher_confirms": true
},
"information": "See https://rabbitpy.readthedocs.io",
"platform": "Python 2.7.6",
"product": "rabbitpy",
"version": "1.0.0"
},

Thanks,
Alex

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