Skip to content

>>Uncaught Bunny\Exception\ClientException: Broken pipe or closed connection.<< and how to solve it

We were running into this issue when our consumers or producers had nothing to do in a minute or less.

After searching the web, we found this issue ticket within the conversation.

Long story short, we could solve our problem by overwriting the default heartbeat with 30 seconds.

//this is an example but full blown configuration we are using
$client = new Client(
        'heartbeat' => 30,
        'host'      => '',
        'password'  => 'guest',
        'user'      => 'guest',
        'vhost'     => '/'

If you want to know more, you can read about rabbitmq networking here and about rabbitmq detecting dead tcp connections with heartbeat and tcp keepalives here

Translate to de es fr it pt ja
Categories: coding
Defined tags for this entry:
Vote for articles fresher than 7 days!
[0] 907 hits


No Trackbacks


Display comments as Linear | Threaded

No comments

The author does not allow comments to this entry

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.

Markdown format allowed
Form options