Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Is the feed size limit too low? #343

Open
olof opened this issue Aug 12, 2016 · 2 comments
Open

Is the feed size limit too low? #343

olof opened this issue Aug 12, 2016 · 2 comments

Comments

@olof
Copy link

olof commented Aug 12, 2016

Hello,

Question rather than a bug report: I'm trying out goread and found two podcasts that are both larger than the 2097152 byte limit (1<<21, hardcoded in tasks.go: fetchFeed).

$ curl -s http://api.sr.se/api/rss/pod/4886 | wc -c
2307379

$ curl -s http://api.sr.se/api/rss/pod/4023 | wc -c
4117725

Both of the podcast feeds are from Sweden's public service radio broadcaster.

Is the 1<<21 byte limit based on real limitations, or would increasing this be possible?

Thanks,

@HaXXoR75
Copy link

According to the commit where this limit was added ( f58356a ), it was done because extremely large feeds cause the instance to crash, without incrementing the error counter, causing it to constantly retry and crash over and over. The example feed linked there is currently 6076129 bytes, so it can be safely assumed that size is a real limitation. whether or not you can increase the limit to 1 < 22 or 23 safely would require trying it and seeing, while im quite sure the first feed you mention would work, I'm really not sure on the second

@olof
Copy link
Author

olof commented Aug 16, 2016

Thanks. I've had issues with other, desktop RSS managers handling them badly, but this is the first time a tool outright refuses to parse it. If you don't consider this a bug, please close this issue and I'll have to find some other solution.

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

No branches or pull requests

2 participants