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

lazy channels #291

Closed
digitalkaoz opened this issue Jul 2, 2015 · 4 comments
Closed

lazy channels #291

digitalkaoz opened this issue Jul 2, 2015 · 4 comments
Labels

Comments

@digitalkaoz
Copy link

is it possible to make channels from a AMQPLazyConnection lazy aswell?

so the channel is only opened when its used...

currently creating a channel directly connects (which is needed to get a channel id) to the cluster. but maybe this step could be made lazy?

my use-case is logging. (i use Monolog and an AMQP Handler). A Message is not always delivered, but the connection and channel is always (needless) opened.

@videlalvaro
Copy link
Collaborator

I think it could be implemented. I would welcome a PR on that

@nubeiro
Copy link
Member

nubeiro commented Feb 15, 2016

@postalservice14 wasn't this solved with #332 ?

@postalservice14
Copy link
Contributor

@nubeiro no, even with the lazy socket connections, it still connects when you open a channel. Here the user is asking that the channel not be opened until it is used, not when it is created.

Sounds pretty easy to do... I can look into creating a PR.

@postalservice14 postalservice14 self-assigned this Feb 15, 2016
@nubeiro nubeiro added feature and removed waiting labels Mar 9, 2016
@lukebakken lukebakken added this to the 2.8.0 milestone Jan 17, 2018
@lukebakken lukebakken removed this from the 2.8.0 milestone Oct 9, 2018
@lukebakken
Copy link
Collaborator

Closing due to inactivity. Please reference this issue if a PR is opened for this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants