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

fix: image optimizer hangs when invalid image is requested #33719

Merged
merged 2 commits into from Jan 27, 2022

Commits on Jan 27, 2022

  1. fix: image optimizer hangs when invalid image is requested

    When an invalid image is requested, the 'finish' event is never triggered,
    which ultimately leads to a 504 Gateway Timeout error.
    
    This is fixed by invoking the 'callback' in `_write()`.
    
    fix vercel#33441
    kyliau committed Jan 27, 2022
    Copy the full SHA
    08e09a5 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    a5cd3f5 View commit details
    Browse the repository at this point in the history