-
Notifications
You must be signed in to change notification settings - Fork 105
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
ClientException #59
Comments
@jakubkulhan I think https://github.com/jakubkulhan/bunny/blob/master/src/Bunny/AbstractClient.php#L306 is a mistake According to http://php.net/manual/en/function.fwrite.php
<?php
function fwrite_stream($fp, $string) {
for ($written = 0; $written < strlen($string); $written += $fwrite) {
$fwrite = fwrite($fp, substr($string, $written));
if ($fwrite === false) {
return $written;
}
}
return $written;
}
?> |
@jakubkulhan any idea? |
@sm2017 If no bytes from the buffer have been written and |
@jakubkulhan |
Can you provide code that would reproduce the problem? |
Why I have too many
ClientException
from the following lines?https://github.com/jakubkulhan/bunny/blob/master/src/Bunny/AbstractClient.php#L302
https://github.com/jakubkulhan/bunny/blob/master/src/Bunny/AbstractClient.php#L306 (Happens too often)
99% of times L306 throws exception
I think the issue is related to #58
The text was updated successfully, but these errors were encountered: