@PostConstruct public void init() { httpClient = new OkHttpClient.Builder()…
- User
@PostConstruct public void init() { httpClient = new OkHttpClient.Builder() .connectTimeout(30, TimeUnit.SECONDS) // 连接超时 .writeTimeout(30, TimeUnit.SECONDS) // 发送超时 .readTimeout(480, TimeUnit.SECONDS) // 读取超时(8分钟) .callTimeout(600, TimeUnit.SECONDS) // 总超时(10分钟) .connectionPool(new ConnectionPool(50, 5, TimeUnit.MINUTES)) // 连接池优化 .build(); } 这一段将配置提取 存到Nacos当中 给出nacos的配置
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.