torrent-rw icon indicating copy to clipboard operation
torrent-rw copied to clipboard

Maximum execution time of exceeded when reading torrent file

Open Worper1997 opened this issue 7 years ago • 8 comments

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%.

error.zip

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.

Worper1997 avatar Jul 31 '17 07:07 Worper1997

#41

thamniyomroots avatar Aug 02 '17 14:08 thamniyomroots

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.

Worper1997 avatar Aug 02 '17 18:08 Worper1997

I'm on vacation with poor connectivity and only my cellphone 😀I'll look into the torrent issue as soon as i can...

Adrien

adriengibrat avatar Aug 04 '17 10:08 adriengibrat

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

adriengibrat avatar Aug 04 '17 10:08 adriengibrat

P.S. I can't open your zip file, i got Amazon S3 error ☹️

Adrien

adriengibrat avatar Aug 04 '17 10:08 adriengibrat

Hum, Line ~530 are explicitly a decode string error... it seems the silent error system is causing an infinite loop😡

Adrien

adriengibrat avatar Aug 04 '17 11:08 adriengibrat

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");

Worper1997 avatar Aug 04 '17 14:08 Worper1997

Hi Any chance this can be fixed? Since it's a fatal error I can't even catch it as an exception.

Thanks

Worper1997 avatar Aug 17 '17 09:08 Worper1997