kleiram / transmission-php

PHP Transmission API client
Other
184 stars 62 forks source link

how to change timeout for all() ? #82

Open divinity76 opened 5 years ago

divinity76 commented 5 years ago

i'm on a slow net, and when running $transmission->all(), i get this:

PHP Fatal error:  Uncaught Buzz\Exception\RequestException: Operation timed out after 5000 milliseconds with 476714 out of 2574175 bytes received in /home/hans/phptests/vendor/kriswallsmith/buzz/lib/Buzz/Client/Curl.php:54
Stack trace:
#0 /home/hans/phptests/vendor/kriswallsmith/buzz/lib/Buzz/Client/Curl.php(30): Buzz\Client\Curl->sendRequest(Object(GuzzleHttp\Psr7\Request), Array)
#1 /home/hans/phptests/vendor/kleiram/transmission-php/lib/Transmission/Client.php(107): Buzz\Client\Curl->send(Object(GuzzleHttp\Psr7\Request), Object(Buzz\Message\Response))
#2 /home/hans/phptests/vendor/kleiram/transmission-php/lib/Transmission/Client.php(272): Transmission\Client->call('torrent-get', Array)
#3 /home/hans/phptests/vendor/kleiram/transmission-php/lib/Transmission/Client.php(116): Transmission\Client->validateResponse(Object(Buzz\Message\Response), 'torrent-get', Array)
#4 /home/hans/phptests/vendor/kleiram/transmission-php/lib/Transmission/Transmission.php(56): Transmission\Client->call('torrent-get', Array)
#5 /home/hans/phptests in /home/hans/phptests/vendor/kleiram/transmission-php/lib/Transmission/Client.php on line 109

how can i change the http timeout value for all() ?