Skip to content
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

Error Reading #23

Open
VijeshDatt opened this issue Feb 16, 2022 · 3 comments
Open

Error Reading #23

VijeshDatt opened this issue Feb 16, 2022 · 3 comments
Assignees
Labels

Comments

@VijeshDatt
Copy link

Not really sure what is causing this issue:

` PAMI\Client\Exception\ClientException

Error reading

at C:\xampp\htdocs\source\vendor\chan-sccp\pami\src\PAMI\Client\Impl\ClientImpl.php:292
288▕ // Read something.
289▕ //$read = @fread($this->socket, 65535);
290▕ $read = @fread($this->socket, 8192);
291▕ if ($read === false || (empty($read) && @Feof($this->socket))) {
➜ 292▕ throw new ClientException('Error reading');
293▕ }
294▕ $this->currentProcessingMessage .= $read;
295▕ // If we have a complete message, then return it. Save the rest for
296▕ // later.

1 C:\xampp\htdocs\source\vendor\chan-sccp\pami\src\PAMI\Client\Impl\ClientImpl.php:316
PAMI\Client\Impl\ClientImpl::getMessages()

2 C:\xampp\htdocs\source\app\Console\Commands\SyncAsteriskNSW.php:129
PAMI\Client\Impl\ClientImpl::process()`

I don't know if this is because of a PHP update? Previous version was PHP 7.4 which worked fine. Now that I'm on PHP 8.1.2 with Laravel 9, keep getting this error when trying to connect.

Please help

@dkgroot dkgroot added the bug label Feb 24, 2022
@dkgroot dkgroot self-assigned this Feb 24, 2022
@dkgroot
Copy link
Member

dkgroot commented Feb 24, 2022

I will have to run a couple of tests to see what is going on there.

@VijeshDatt
Copy link
Author

Hey @dkgroot, Just to give you a small heads up. Using this package over the base PAMI has one more bug, it's slower at reading/writing.

To give some context, I am running the PAMI listeners against 3 Ast servers, each server gives me a message every 10 milliseconds. The base PAMI package works flawlessly with this setup but when using your package, the messages are delayed, as though a function is taking forever to load, however I tried debugging and couldn't figure out which method/function it was, maybe you can verify?

@colinwebdev
Copy link

Was there ever a resolution to this? I am running into the same issue and cannot find a means around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants