Skip to content

Commit

Permalink
Merge pull request #45670 from stuartwdouglas/stuartwdouglas/app-rest…
Browse files Browse the repository at this point in the history
…arts

Don't allow requests into restarting application
  • Loading branch information
geoand authored Jan 18, 2025
2 parents e9d7758 + 4ba3a46 commit fc7985e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ public Void call() {
routingContext.request().resume();
return;
}
if ((nextUpdate > System.currentTimeMillis() && !hotReplacementContext.isTest())
if ((nextUpdate > System.currentTimeMillis() &&
!hotReplacementContext.isTest() &&
!DevConsoleManager.isDoingHttpInitiatedReload()) // if there is a live reload possibly going on we don't want to let a request through to restarting application, this is best effort, but it narrows the window a lot
|| routingContext.request().headers().contains(HEADER_NAME)) {
if (hotReplacementContext.getDeploymentProblem() != null) {
handleDeploymentProblem(routingContext, hotReplacementContext.getDeploymentProblem());
Expand Down

0 comments on commit fc7985e

Please sign in to comment.