Skip to content

Thread-safety problem in RouteImpl #740

Closed
@visualage

Description

@visualage

Version

  • vert.x core: 3.5.0
  • vert.x web: 3.5.0

Context

The current RouteImpl implementation has thread-safety issues if the RouteImpl instance is used across multiple requests in multiple threads concurrently. The problem lies with the actualHandlerIndex and actualFailureHandlerIndex. These two fields are currently associated with RouteImpl. They should be part of the request state since each request have different values for them, and they could be modified concurrently due to the fact that handler can run in a completely different thread.

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions