dejanb / stomp-php

Stomp PHP Client
http://stomp.fusesource.org/documentation/php/
93 stars 46 forks source link

Infinite loop in Stomp class #27

Open chbiel opened 10 years ago

chbiel commented 10 years ago

Hi, I got into a problem when ActiveMQ is not reachable when I try to read a frame.

Function nesting level 100 reached, is the fatal error that is thrown.

An excerpt from the stacktrace:

599.8594 11304136 5. FuseSource\Stomp\Stomp->readFrame() D:\ism-163\application\models\Queue\ActiveMqConnection.php:132 599.8594 11304264 6. FuseSource\Stomp\Stomp->_reconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:568 599.8594 11304264 7. FuseSource\Stomp\Stomp->connect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:634 600.8995 11296520 8. FuseSource\Stomp\Stomp->readFrame() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:208 600.8995 11304848 9. FuseSource\Stomp\Stomp->_reconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:568 600.8995 11304848 10. FuseSource\Stomp\Stomp->connect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:634 600.8995 11304848 11. FuseSource\Stomp\Stomp->_makeConnection() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:195 600.8995 11304848 12. FuseSource\Stomp\Stomp->disconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:147 600.8995 11305072 13. FuseSource\Stomp\Stomp->_writeFrame() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:504 600.9285 11305160 14. FuseSource\Stomp\Stomp->_reconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:529 600.9285 11305160 15. FuseSource\Stomp\Stomp->connect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:634 600.9285 11305160 16. FuseSource\Stomp\Stomp->_makeConnection() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:195 600.9285 11305160 17. FuseSource\Stomp\Stomp->disconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:147 600.9285 11305384 18. FuseSource\Stomp\Stomp->_writeFrame() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:504 600.9675 11305472 19. FuseSource\Stomp\Stomp->_reconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:529 600.9675 11305472 20. FuseSource\Stomp\Stomp->connect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:634 600.9675 11305472 21. FuseSource\Stomp\Stomp->_makeConnection() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:195 600.9675 11305472 22. FuseSource\Stomp\Stomp->disconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:147 600.9675 11305696 23. FuseSource\Stomp\Stomp->_writeFrame() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:504 601.0275 11305784 24. FuseSource\Stomp\Stomp->_reconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:529 601.0275 11305784 25. FuseSource\Stomp\Stomp->connect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:634 601.0275 11305784 26. FuseSource\Stomp\Stomp->_makeConnection() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:195 601.0275 11305784 27. FuseSource\Stomp\Stomp->disconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:147 601.0275 11306008 28. FuseSource\Stomp\Stomp->_writeFrame() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:504 601.0845 11306096 29. FuseSource\Stomp\Stomp->_reconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:529 601.0845 11306096 30. FuseSource\Stomp\Stomp->connect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:634 601.0845 11306096 31. FuseSource\Stomp\Stomp->_makeConnection() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:195 601.0845 11306096 32. FuseSource\Stomp\Stomp->disconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:147 601.0845 11306320 33. FuseSource\Stomp\Stomp->_writeFrame() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:504 601.1585 11322792 34. FuseSource\Stomp\Stomp->_reconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:529 601.1585 11322792 35. FuseSource\Stomp\Stomp->connect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:634 601.1585 11322792 36. FuseSource\Stomp\Stomp->_makeConnection() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:195 601.1585 11322792 37. FuseSource\Stomp\Stomp->disconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:147 601.1585 11323016 38. FuseSource\Stomp\Stomp->_writeFrame() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:504 601.2355 11323104 39. FuseSource\Stomp\Stomp->_reconnect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:529 601.2355 11323104 40. FuseSource\Stomp\Stomp->connect() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:634 601.2355 11323104 41. FuseSource\Stomp\Stomp->_makeConnection() D:\ism-163\library\fusesource\stomp-php\src\FuseSource\Stomp\Stomp.php:195

(the rest is always the same)