jetty.project icon indicating copy to clipboard operation
jetty.project copied to clipboard

Introduce locking for core HTTP `Session`

Open sbordet opened this issue 2 years ago • 8 comments
trafficstars

Jetty version(s) 12

Enhancement Description Currently the way to use core HTTP org.eclipse.jetty.server.Session concurrently is to use synchronized around it.

This is not virtual threads friendly, so we should have a mechanism such as:

  • Session.locked(Runnable); or
  • Session.getLock(); or
  • Session.getAutoLock()

sbordet avatar Aug 24 '23 09:08 sbordet