-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Gunnar Hillert opened INT-2248 and commented
There are places where we are currently interpreting a request-timeout attribute as if it were a reply-timeout. For example, have a look at the HttpOutboundGatewayParser. We need to deprecate those attributes, replace them with reply-timeout and document clearly what that means.
This Jira serves as a parent umbrella issue. Sub-issues will be created for all affected Outbound Gateways.
E.g. see #6227
The parser code would basically look like this:
IntegrationNamespaceUtils.setValueIfAttributeDefined(builder, element, "reply-timeout", "sendTimeout");
We could add a warn-level message for use of the then deprecated request-timeout attribute.
The real request-timeout, is actually not applicable in the first place, since the receive-timeout can be specified on a Poller element (as it should be) whenever the request-channel referenced is in fact a PollableChannel.
Important
There are valid edge-cases. E.g. The Payload Enricher when using a request channel acts like a gateway. In that case a request-timeout is perfectly valid. In fact, the wrapped Gateway in that case behaves more like an Inbound Gateway. I wanted to mention this to illustrate a case where the delineation of Outbound Gateways is starting to blur.
Take a look at #6198 - When we update the documentation we need to make sure to mention this and explain the differences.
Affects: 2.1 M3
Sub-tasks:
-
Jdbc Outbound Gateways - Change "request-timeout" to "reply-timeout" [INT-2245] #6227 Jdbc Outbound Gateways - Change "request-timeout" to "reply-timeout"
-
HTTP outbound gateway - 'request-timeout' should be 'reply-timeout' [INT-2251] #6225 HTTP outbound gateway - 'request-timeout' should be 'reply-timeout'
Issue Links:
- Change from request-timeout to reply-timeout in HttpOutboundGateway is not reflected in the SI reference guide [INT-2450] #6429 Change from request-timeout to reply-timeout in HttpOutboundGateway is not reflected in the SI reference guide
("is depended on by") - Add reply-timeout to All Outbound Gateways [INT-2262] #6247 Add reply-timeout to All Outbound Gateways
("is superseded by") - Select and Implement New Atrtibute Reflecting Remote Server Response Timeout (for Outbound Gateways) [INT-2263] #6248 Select and Implement New Atrtibute Reflecting Remote Server Response Timeout (for Outbound Gateways)
("is superseded by") - TCP Outbound Gateway - Reconcile reply-timeout with INT-2262 and INT-2263 [INT-2264] #6249 TCP Outbound Gateway - Reconcile reply-timeout with Add reply-timeout to All Outbound Gateways [INT-2262] #6247 and Select and Implement New Atrtibute Reflecting Remote Server Response Timeout (for Outbound Gateways) [INT-2263] #6248
("is superseded by")