fix(ais): AIS WebClient 버퍼 제한 초과(DataBufferLimitException) 수정 #68

병합
HYOJIN bugfix/fix-ais-webclient-buffer-limit 에서 develop 로 2 commits 를 머지했습니다 2026-03-18 13:36:10 +09:00
Showing only changes of commit 1d764188eb - Show all commits

파일 보기

@ -84,12 +84,17 @@ public class MaritimeApiWebClientConfig {
log.info("Base URL: {}", maritimeAisApiUrl);
log.info("========================================");
HttpClient httpClient = HttpClient.create()
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10_000) // 연결 타임아웃 10초
.responseTimeout(Duration.ofSeconds(60)); // 응답 대기 60초
return WebClient.builder()
.clientConnector(new ReactorClientHttpConnector(httpClient))
.baseUrl(maritimeAisApiUrl)
.defaultHeaders(headers -> headers.setBasicAuth(maritimeApiUsername, maritimeApiPassword))
.codecs(configurer -> configurer
.defaultCodecs()
.maxInMemorySize(50 * 1024 * 1024)) // 50MB 버퍼 (AIS GetTargets 응답 ~20MB+)
.maxInMemorySize(100 * 1024 * 1024)) // 100MB 버퍼
.build();
}