Why can only 63 client connections be created for a Spring Boot instance? #5185
Unanswered
QUANGUANGYAO
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I introduced the socket.io-client dependency in my local Spring Boot project and simulated the creation of socket clients through a for loop. However, the maximum number of successful creations was 63, and the 64th one could not connect successfully. What is the problem?
`package com.example.socketioclient.config;
import io.socket.client.IO;
import io.socket.client.Socket;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@component
@slf4j
public class SocketIOManager {
// String SERVER_URL = "http://172.14.144.69:9092/";
IO.Options options = IO.Options.builder().setPath("/socket.io/").build();
}
`
Above is my code,can anyone help me?
Beta Was this translation helpful? Give feedback.
All reactions