The scenario is 1 Server -- X Clients, Server is 1.5.5 Jmix ver and the clients are using the latest one.
All those clients are creating entities in the server via REST. so every POST creates a new user session on the server side. Here is where I have the problem:
1 - How can I increase the maximum user sessions for the same user? I think default is 100 but I need more.
2- Here is the code on the client side that make the POST request:
the return response.releaseBody().thenReturn(responseStatus);
ignore the body and return status code so WebClient must close the connection but it doesn´t.
I have allways 100 user sessions which closes a random one only when a new one is trying to connect. So it is a problem. I want to know how user sessions works on Jmix maybe I have missed something.
A solution could be an increase of maximum user sessions and programatically close those connections which have more than 3 min on idle but honestly I don´t like this approach.
works perfectly. I need this but also I must control sessions that opens when every client make REST request. I don´t have io.jmix.sessions:jmix-sessions-starter dependency as you can see:
I´m working on some code that use cookies on headers to reuse the connection but it is not that straight forward as I thought since I think it can cause connection problems.