Hello to everyone
Wonder if someone, please, can help me
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:
public HttpStatus sendToPolux(WebClientParams wcp, AutenticationApi auth, String bodyValue){
return wcp.webClientRecolector().post()
.headers(h -> {
h.setBearerAuth(auth.getToken());
})
.bodyValue(bodyValue)
.exchangeToMono(response -> {
HttpStatus responseStatus = (HttpStatus) response.statusCode();
return response.releaseBody().thenReturn(responseStatus);
}
)
.onErrorReturn(HttpStatus.INTERNAL_SERVER_ERROR)
.block();
}
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.
Thank you in advance.