pear2 / Net_RouterOS

This package allows you to read and write information from a RouterOS host using the MikroTik RouterOS API protocol.
http://pear2.php.net/PEAR2_Net_RouterOS
240 stars 114 forks source link

Api travando com l2mtu diferente #52

Open gamadoleo opened 4 years ago

gamadoleo commented 4 years ago

Good morning, for some time I noticed a certain abnormality in access to mikrotik via api php, previously used a simple class provided, that simple:

https://github.com/BenMenking/routeros-api/blob/master/routeros_api.class.php

then I started using this api because it has many other features, but the same error occurs in both, if l2mtu is configured with values ​​other than 1580 in the access interface it is looping and the php script hangs and does not display any exception, and what's worse is that it causes crashes ... and the worst thing is that it can connect normally but when requested to get bulk data for example "/ppp/active/print" ou "/queue/simple/print"

both make the access loop forever if l2mtu for example in 1500, if only generated an exeption or upon reaching the timeout displayed an error. could someone min help? because setting up an l2mtu solves but this has happened many times.

boenrobot commented 4 years ago

Doesn't sound like this can be solved on a PHP code level.

I reccomend you try upgrading your PHP version to 7.3.10, and if it still doesn't work, maybe do some inspections using Wireshark to compare differences, and show exports of them in bugs.php.net, so that they can reproduce using a traffic generator.

gamadoleo commented 4 years ago

Doesn't sound like this can be solved on a PHP code level.

I reccomend you try upgrading your PHP version to 7.3.10, and if it still doesn't work, maybe do some inspections using Wireshark to compare differences, and show exports of them in bugs.php.net, so that they can reproduce using a traffic generator.

142/5000 I will perform a test, but I ask you, you have already been through some kind, because there are many servers and I'm using php 7.0.30.