You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the limit is reached in the browser the user gets just a blank screen and does not know what is going on. Add a error message so he knews whats happening.
In HttpEndpointListener, add a ProblemDetails message to the error message.
while(true) {
int currentConnections = connectionCount.get();
// TODO: if count == -1 -> try to get the counter in a while loop
if (currentConnections >= concurrentConnectionLimitPerIp) {
log.warn(constructLogMessage(new StringBuilder(), remoteIp, readUpTo1KbOfDataFrom(socket, new byte[1023])));
writeRateLimitReachedToSource(socket);
socket.close();
connnectionWithinLimit = false;
break;
}
if (connectionCount.compareAndSet(currentConnections, currentConnections + 1))
break;
}
The text was updated successfully, but these errors were encountered:
When the limit is reached in the browser the user gets just a blank screen and does not know what is going on. Add a error message so he knews whats happening.
In HttpEndpointListener, add a ProblemDetails message to the error message.
The text was updated successfully, but these errors were encountered: