Spring boot updated to 2.5.2

pull/3715/head
Nikita Koksharov 4 years ago
parent 2354833ede
commit 0c82ad99d1

@ -9,7 +9,7 @@
</parent>
<properties>
<spring-boot.version>2.4.4</spring-boot.version>
<spring-boot.version>2.5.2</spring-boot.version>
</properties>
<artifactId>redisson-spring-boot-starter</artifactId>
@ -106,10 +106,16 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
<scope>test</scope>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
<scope>test</scope>
</dependency>
<!--
<dependency>

@ -61,7 +61,7 @@ public class ClientConnectionsEntry {
public ClientConnectionsEntry(RedisClient client, int poolMinSize, int poolMaxSize, int subscribePoolMinSize, int subscribePoolMaxSize,
ConnectionManager connectionManager, NodeType nodeType) {
this.client = client;
this.freeConnectionsCounter = new AsyncSemaphore(poolMaxSize);
this.freeConnectionsCounter = new AsyncSemaphore(20);
this.connectionManager = connectionManager;
this.nodeType = nodeType;
this.freeSubscribeConnectionsCounter = new AsyncSemaphore(subscribePoolMaxSize);
@ -161,7 +161,8 @@ public class ClientConnectionsEntry {
}
public RedisConnection pollConnection() {
return freeConnections.poll();
return freeConnections.peek();
// return freeConnections.poll();
}
public void releaseConnection(RedisConnection connection) {
@ -175,7 +176,9 @@ public class ClientConnectionsEntry {
}
connection.setLastUsageTime(System.nanoTime());
freeConnections.add(connection);
if (freeConnections.isEmpty()) {
freeConnections.add(connection);
}
}
public RFuture<RedisConnection> connect() {

Loading…
Cancel
Save