-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Cover Image slows down requests #8041
Labels
bug
[triage] something behaving unexpectedly
server / core
Issues relating to the server or core of Ghost
Milestone
Comments
aileen
added a commit
to aileen/Ghost
that referenced
this issue
Mar 1, 2017
refs TryGhost#8041 Calls `getImageSize` with an timeout of 6sec. and adds a default timeout (in case, function is called without optional timeout) of 10sec, to prevent node from using its default timeout of 2minutes 😱
kirrg001
pushed a commit
that referenced
this issue
Mar 1, 2017
refs #8041 Calls `getImageSize` with an timeout of 6sec. and adds a default timeout (in case, function is called without optional timeout) of 10sec, to prevent node from using its default timeout of 2minutes 😱
@AileenCGN Could you PR the fix to master as well?Thanks :) |
@kirrg001 can you please copy over this change before the next release? |
👍 |
kirrg001
pushed a commit
to kirrg001/Ghost
that referenced
this issue
Mar 20, 2017
refs TryGhost#8041 Calls `getImageSize` with an timeout of 6sec. and adds a default timeout (in case, function is called without optional timeout) of 10sec, to prevent node from using its default timeout of 2minutes 😱
ErisDS
pushed a commit
that referenced
this issue
Mar 20, 2017
refs #8041 Calls `getImageSize` with an timeout of 6sec. and adds a default timeout (in case, function is called without optional timeout) of 10sec, to prevent node from using its default timeout of 2minutes 😱
This is not fixed, reopening |
kirrg001
added a commit
to kirrg001/Ghost
that referenced
this issue
Mar 22, 2017
refs TryGhost#8041 - destroy socket is required, see https://nodejs.org/api/http.html#http_server_settimeout_msecs_callback - optimise error messages in general
kirrg001
added
server / core
Issues relating to the server or core of Ghost
bug
[triage] something behaving unexpectedly
labels
Apr 3, 2017
ErisDS
pushed a commit
that referenced
this issue
Apr 4, 2017
refs #8041 * 🐛 fix image size timeout - destroy socket is required, see https://nodejs.org/api/http.html#http_server_settimeout_msecs_callback - optimise error messages in general * fix jshint * Make timeouts configureable
kirrg001
added a commit
to kirrg001/Ghost
that referenced
this issue
Apr 5, 2017
refs TryGhost#8041 - destroy socket is required, see https://nodejs.org/api/http.html#http_server_settimeout_msecs_callback - optimise error messages in general - make timeouts configureable
ErisDS
pushed a commit
that referenced
this issue
Apr 5, 2017
closes #8041 - destroy socket is required, see https://nodejs.org/api/http.html#http_server_settimeout_msecs_callback - optimise error messages in general - make timeouts configureable
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
[triage] something behaving unexpectedly
server / core
Issues relating to the server or core of Ghost
Issue Summary
When an image from an external source is included as cover image for a post the image size is calculated when the post is first loaded. This works quite well under normal circumstances. If the external image is loading slowly or not at all the request is stuck while the image is loading.
Steps to Reproduce
Short term fix would be to set the already existent timeout to an acceptable value (https://github.com/TryGhost/Ghost/blob/master/core/server/utils/image-size-from-url.js#L33).
Long term we should store the image size at the time when the image is added.
Technical details:
The text was updated successfully, but these errors were encountered: