brycied00d / PHP-Transmission-Class

PHP Class for the Transmission Daemon RPC interface
http://code.google.com/p/php-transmission-class/
GNU General Public License v3.0
104 stars 47 forks source link

Unable to connect Exception thrown when using set-location to move across filesystems #8

Closed brycied00d closed 12 years ago

brycied00d commented 12 years ago

What steps will reproduce the problem?

  1. use move function to move torrent contents across filesystems
  2. if data moved is > 200-300 MB, "Unable to Connect" Exception is thrown.

Data is still moved, even if multiple torrents. Seems as though transmission doesn't send any sort of response until the request is complete causing fopen is timing out. As an aside, I cannot reconnect to the RPC server until the request completes, although this is likely a function of transmission, rather than this library

Warning: fopen(http://localhost:9091/transmission/rpc): failed to open stream: HTTP request failed! in /homedir/Development/down/TransmissionRPC.class.php on line 399

Google Code Info: Issue #: 8 Author: medv...@gmail.com Created On: 2010-12-05T15:00:17.000Z Closed On: 2011-04-10T06:15:04.000Z

brycied00d commented 12 years ago

Hey thanks for the report! (And sorry for the delay) I haven't been able to reproduce this myself, but I can see how this would happen on slower hardware. I'll see if I can come up with a good solution... but to be frank, I can't think of one. Disabling the socket read timeout for a single method isn't exactly good practice, and leaves the only script timeout to be PHPs max runtime. For the time being, I'm marking this WontFix... but I may change my mind, or Johan may have an idea.

Google Code Info: Author: brycied...@gmail.com Created On: 2011-04-10T06:15:04.000Z