You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/05/23 07:24:00 UTC

[jira] [Reopened] (CAMEL-19377) camel-platform-http - Return 503 if consumer is suspended

     [ https://issues.apache.org/jira/browse/CAMEL-19377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reopened CAMEL-19377:
---------------------------------

> camel-platform-http - Return 503 if consumer is suspended
> ---------------------------------------------------------
>
>                 Key: CAMEL-19377
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19377
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-platform-http
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.21.0, 4.0-RC1, 4.0
>
>
> We do this in camel-servet based (jetty etc)
>             // are we suspended and a request is dispatched initially?
>             if (consumer.isSuspended() && isInitial(request)) {
>                 response.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE);
>                 return;
>             }
> We should do something like that in camel-platform-http, so Camel does not accept incoming requests when its suspended/shutdown graceful



--
This message was sent by Atlassian Jira
(v8.20.10#820010)