Apigee REST Stream connection timeout after 5 mins

Hi,

We have enabled the rest streaming by adding the following lines in Apigee proxy:

<HTTPTargetConnection>
  <LoadBalancer>
    <Server name="@target_server_name@"/>
  </LoadBalancer>
  <Path>/@target_endpoint@</Path>
  <Properties>
    <Property name="request.streaming.enabled">true</Property>
    <Property name="response.streaming.enabled">true</Property>
    <Property name="io.timeout.millis">120000</Property>
  </Properties>
</HTTPTargetConnection>

The issue is the connection is getting closed after 5 mins even if the stream is not finished.
This behavior is intermittent with different payload.
Can someone please help on this.

2 Likes

Hi, do you see any findings or error messages in the debug, anything you can share on this

Can you tell me, how long do you WANT The stream to remain open?

What is the scenario in which the stream needs to remain open?

Tell me more.

Normally in these cases the client can detect when the stream is closed , and the client opens a new stream.

1 Like