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

authentication failure causes hang #9

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 2 comments
Open

authentication failure causes hang #9

GoogleCodeExporter opened this issue Mar 28, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

try authenticating with bad credentials, and you'll get a hang until php
times out.  This is because amqp does not specify how to handle a failed
authentication, and servers tend to just close the connection.  php-amqplib
doesn't consider that possibility.  A patch to fix is attached.  You don't
get an error that indicates auth failure (well, how can you really?) but at
least you don't have the php process hang until the 30 second timeout is hit.

Original issue reported on code.google.com by [email protected] on 29 Oct 2009 at 10:56

Attachments:

@GoogleCodeExporter
Copy link
Author

Actually, remove the check for timed_out.  That breaks consumers.  For the
authentication failure, you only need to check for eof and break out of the 
loop.

Original comment by [email protected] on 29 Oct 2009 at 11:25

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Lyolik please review these bugs.

Original comment by [email protected] on 21 Mar 2010 at 9:17

  • Added labels: ****
  • Removed labels: ****

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

No branches or pull requests

1 participant