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

Getting Net::ReadTimeout during create_image_api_image_resource #71

Open
minusdavid opened this issue Jun 7, 2018 · 0 comments
Open

Comments

@minusdavid
Copy link

I'm testing a IIIF manifest generator that I wrote using the iiif-presentation gem, and I'm getting Net::ReadTimeout exceptions.

Admittedly, the manifest generator is running in Virtualbox, which is also running Loris, on a desktop... and that Loris on the desktop needs to go off to Amazon over an ADSL connection to get some rather large files, so this isn't what one would expect to happen in production.

But I notice there is no way to tell osullivan/iiif-presentation to use a longer read timeout. I think the default is 60 seconds and it's not hacking it, which isn't surprising as I think I've benchmarked the download from Amazon to be around 2 minutes. Once Loris has cached the image from the Amazon server, then there's no issue running create_image_api_image_resource, since it's already cached locally. But when Loris has to struggle to pull down that image... it causes the manifest generator to lose its mind.

I suppose I could try mitigating that with retry attempts or something, but... just increasing the timeout should be sufficient.

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

1 participant