Skip to content

Add timeout configurations to the Salesforce listener #8649

@Nuvindu

Description

@Nuvindu

Area

None

Current Limitation

Currently the Salesforce listener does not provide a way to configure the following timeout configurations.

Connection Timeout - Maximum time to wait for establishing a connection to the Salesforce API
Read Timeout - Maximum time to wait for the long polling transport before considering a request failed
KeepAlive Timeout - The maximum duration that a connection is kept alive without activity

Suggested Improvement

There should be a way for the users to configure these values in the listener configs as follows.

public type ListenerConfig record {|
    ... //

    # The maximum time in seconds to wait for establishing a connection to the Salesforce streaming API
    decimal connectionTimeout = 30;
    # The maximum time in seconds to wait for the long polling transport before considering a request failed
    decimal readTimeout = 30;
    # The maximum duration in seconds that a connection is kept alive without activity
    decimal keepAliveInterval = 120;
|};

Version

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions