Skip to content

Commit

Permalink
Change purge timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier HAUSHERR committed Dec 9, 2014
1 parent d4e1762 commit 4899d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ActiveMq/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public function purge($queue)
$stomp = $this->getConnection();
$header = array('id' => sprintf('purge:%s', $queue));

// No need to wait more than 1 ms if there is no messages in queue
$stomp->setReadTimeout(0, 1);
// No need to wait more than 1s if there is no messages in queue
$stomp->setReadTimeout(1, 0);

$stomp->subscribe($queue, $header);

Expand Down

0 comments on commit 4899d91

Please sign in to comment.