geometer / FBReaderJ

Official FBReaderJ project repository
http://www.fbreader.org/FBReaderJ/
1.83k stars 802 forks source link

Option to increase OPDS load timeout #392

Open dkavlakov opened 8 years ago

dkavlakov commented 8 years ago

I recently had the chance to work with some ARM based devices that have OPDS feed function. Unfortunately it turns that in it's current state fbreader does not seem to be able to work with such devices. They work much slower than a PC, made as server and the relatively short network timeout in fbreader is insufficient. Some feeds are generated in time, however as soon as you reach one with at least 15-20 titles it is generated 2-3 seconds after fbreader timeouted' Some larger feeds can be generated even 15-20 secconds later.

BTW, similar problem ocures sometimes for those who use the phone version of TOR network to access Intermet.

I understand that very long timeout may be disadvantageous for those who use server PC hosted OPDS feeds.over plain connection, so increasing default timeout may not be the best approach. You may however make ot configurable, or add an option to oncrease it with some 30 secconds.

BTW, fbreader also really lacks the ability to set a program speciffic proxy server. In this case for example setting caching proxy is a way to run arround the problem.