torrent-rw
torrent-rw copied to clipboard
Maximum execution time of exceeded when reading torrent file
Hi I'm getting the errors PHP Fatal error: Maximum execution time of 55 seconds exceeded in /home/mojtaba/.rapidpich/lib/Torrent.class.php on line 531 it's not always the same lines however I get repeated error around same lines. I also don't know where the 55seconds come from as I'm running the script in cli mode. The lines are mostly 539 - 543 but sometimes 520,511,476 (It's the same torrent but everytime it terminates at different line The script does hog one CPU core at 100%.
The torrents are rather large so this might be the same problem as https://github.com/adriengibrat/torrent-rw/issues/38 but since the OP of that issue didn't provide more details I opened a new issue.
#41
this doesn't have anything to do with the size of the torrent file as the class can open some 2MB torrent files however it has difficulty opening the examples I uploaded.
I'm on vacation with poor connectivity and only my cellphone 😀I'll look into the torrent issue as soon as i can...
Adrien
Could be related to fetching tracker Stats (server does not answer, nor close connection), could you provide sample code that trigger the timeout error?
Adrien
P.S. I can't open your zip file, i got Amazon S3 error ☹️
Adrien
Hum, Line ~530 are explicitly a decode string error... it seems the silent error system is causing an infinite loop😡
Adrien
dude just enjoy your vacation ;) I'm currently just saving the large torrent files so I can check them later so it's not a priority. Regarding the sample code just opening the torrent file results in a timeout: $T = new Torrent("badtorrent.torrent");
Hi Any chance this can be fixed? Since it's a fatal error I can't even catch it as an exception.
Thanks