hamedramzi / php-transmission-class

Automatically exported from code.google.com/p/php-transmission-class
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 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

Original issue reported on code.google.com by medv...@gmail.com on 5 Dec 2010 at 3:00

GoogleCodeExporter commented 9 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.

Original comment by brycied...@gmail.com on 10 Apr 2011 at 6:15