Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum execution time of exceeded when reading torrent file #41

Open
Worper1997 opened this issue Jul 31, 2017 · 8 comments
Open

Maximum execution time of exceeded when reading torrent file #41

Worper1997 opened this issue Jul 31, 2017 · 8 comments

Comments

@Worper1997
Copy link

Worper1997 commented Jul 31, 2017

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
#38
but since the OP of that issue didn't provide more details I opened a new issue.

@thamniyomroots
Copy link

#41

@Worper1997
Copy link
Author

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.

@adriengibrat
Copy link
Owner

adriengibrat commented Aug 4, 2017 via email

@adriengibrat
Copy link
Owner

adriengibrat commented Aug 4, 2017 via email

@adriengibrat
Copy link
Owner

adriengibrat commented Aug 4, 2017 via email

@adriengibrat
Copy link
Owner

adriengibrat commented Aug 4, 2017 via email

@Worper1997
Copy link
Author

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
Copy link
Author

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

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants