Permalink
Browse files

Merge pull request #22 from boonedox/master

bug fix for Stomp::readFrame, was occasionally reading more than one Frame, this merge prevents this as it only reads up to \n and checks for end of frame before anything of the next frame is read
  • Loading branch information...
monofone committed Feb 23, 2013
2 parents 92265d5 + e143d5c commit 4ac51c0abee05078e198faf13f48c056a72f8f8c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/FuseSource/Stomp/Stomp.php
@@ -563,7 +563,7 @@ public function readFrame ()
$end = false;
do {
- $read = fread($this->_socket, $rb);
+ $read = fgets($this->_socket, $rb);
if ($read === false || $read === "") {
$this->_reconnect();
return $this->readFrame();

1 comment on commit 4ac51c0

@rupertchen

This comment has been minimized.

Show comment Hide comment
@rupertchen

rupertchen Jul 2, 2013

Could this fix be tagged and made available as a new version in packagist?

Could this fix be tagged and made available as a new version in packagist?

Please sign in to comment.