Skip to content

Enable global timeout for Lettuce by default [DATAREDIS-918] #1483

@spring-projects-issues

Description

@spring-projects-issues

Mark Paluch opened DATAREDIS-918 and commented

We should enable Lettuce's global timeouts (via TimeoutOptions.enabled() and ClientOptions) to add a timeout protection for reactive calls.

Right now, reactive calls do not time out. By setting ClientOptions.builder().timeoutOptions(TimeoutOptions.enabled()).build() we can enable global timeouts that use the configured command timeout as TimeoutOptions is a marker to timeout all commands, not only the ones invoked through the synchronous API


Affects: 2.1.3 (Lovelace SR3)

Reference URL: spring-projects/spring-boot#15542

Referenced from: pull request #381

Backported to: 2.1.4 (Lovelace SR4)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions