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

Got an error when using php-amqplib with rabbitmq-bundle #96

Closed
scourgen opened this issue Aug 21, 2013 · 5 comments
Closed

Got an error when using php-amqplib with rabbitmq-bundle #96

scourgen opened this issue Aug 21, 2013 · 5 comments

Comments

@scourgen
Copy link

my php-amqplib version is v2.1.0

I was running a command that send message to a queue. but I've got this error:

PHP Notice: fwrite(): send of 19 bytes failed with errno=32 Broken pipe in /var/www/www.test.com/shared/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php on line 61

@videlalvaro
Copy link
Collaborator

Generally "Broken pipe" means that you lost the connection to whichever service you were talking to

@richRemer
Copy link

FYI, this can occur when the vhost is not set in the connection.

@richRemer
Copy link

I'm getting this from the PhpAmqpLib\Connection\AbstractConnection->__destruct method. Destructors should NOT be doing any work like writing to the network. There is no way to handle this error because it doesn't happen as part of the normal control flow.

@gjuric
Copy link

gjuric commented Dec 10, 2014

I know this is an old issue, but since it is still open:

  1. it is not an error but a notice
  2. In the current version you have the option to not close the connection during __destruct(), see here

@lukebakken
Copy link
Collaborator

Closing, see @gjuric's comment.

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

5 participants