You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace socket_get_status() with stream_get_meta_data() for clarity
- Only throw timeout exception when timed_out=true AND no data received
- Add configurable 'throw_timeout_exception' option to disable timeout checks
- Update Laravel config with ROUTEROS_THROW_TIMEOUT_EXCEPTION env var
Tested on PHP 8.4.15 with RouterOS 7.12.1, retrieved 72,788 records successfully.
Fixes: #131
'ssh_port' => (int) env('ROUTEROS_SSH_PORT', 22), // Number of SSH port
85
-
'ssh_timeout' => (int) env('ROUTEROS_SSH_TIMEOUT', env('ROUTEROS_TIMEOUT', 30)), // Max timeout for read from RouterOS via SSH proto (for "/export" command)
86
-
'ssh_private_key' => env('ROUTEROS_SSH_PRIVKEY', '~/.ssh/id_rsa.pub'), // Full path to required private key
84
+
'ssh_port'=> (int) env('ROUTEROS_SSH_PORT', 22), // Number of SSH port
85
+
'ssh_timeout'=> (int) env('ROUTEROS_SSH_TIMEOUT', env('ROUTEROS_TIMEOUT', 30)), // Max timeout for read from RouterOS via SSH proto (for "/export" command)
86
+
'ssh_private_key'=> env('ROUTEROS_SSH_PRIVKEY', '~/.ssh/id_rsa.pub'), // Full path to required private key
0 commit comments