Wouldn't it be cleaner if you'd fetch the data in chunks of the same size and set a timeout for that? The ampache api lets you set an limit and an offset for a request. Otherewise there'll be allways a user who has a request that ist big enough to time out. ;-) At least the timeout should be configurable because this depends on the server and its use and this can never be forseen.
Wouldn't it be cleaner if you'd fetch the data in chunks of the same size and set a timeout for that? The ampache api lets you set an limit and an offset for a request. Otherewise there'll be allways a user who has a request that ist big enough to time out. ;-) At least the timeout should be configurable because this depends on the server and its use and this can never be forseen.
Best Regards