Skip to content

Remove default use of SimpleAsyncTaskExecutor in WebSocketClient implementations [SPR-11580] #16204

@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-11580 and commented

Currently WebSocketClient implementations use a SimpleAsyncTaskExecutor by default to avoid blocking when connecting.

Not using any executor is arguably a better default for the case where a large number of connections are made. If connections are opened quickly, the difference probably won't be noticed, or if they're slow it leads to a realization that a task executor can be configured.

By contrast a SimpleAsyncTaskExecutor leads to thread creation, a more subtle effect that is harder to realize.


Affects: 4.0.2

Referenced from: commits 9552c82

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions