|
|
|
|
@ -20,6 +20,7 @@ import io.netty.handler.logging.*;
|
|
|
|
|
import io.netty.handler.ssl.*;
|
|
|
|
|
import io.netty.handler.ssl.util.*;
|
|
|
|
|
import io.netty.handler.timeout.*;
|
|
|
|
|
import io.netty.resolver.*;
|
|
|
|
|
import kr.xit.core.exception.*;
|
|
|
|
|
import lombok.*;
|
|
|
|
|
import lombok.extern.slf4j.*;
|
|
|
|
|
@ -105,7 +106,14 @@ public class WebClientConfig {
|
|
|
|
|
.doOnConnected(conn ->
|
|
|
|
|
conn.addHandlerLast(new ReadTimeoutHandler(readTimeout, TimeUnit.MILLISECONDS))
|
|
|
|
|
.addHandlerLast(
|
|
|
|
|
new WriteTimeoutHandler(readTimeout, TimeUnit.MILLISECONDS)));
|
|
|
|
|
new WriteTimeoutHandler(readTimeout, TimeUnit.MILLISECONDS)))
|
|
|
|
|
/*
|
|
|
|
|
FIXME: 아래 에러 처리를 위해 코드 추가
|
|
|
|
|
Request processing failed; nested exception is org.springframework.web.reactive.function.client.WebClientRequestException: failed to resolve 'api.github.com' after 2 queries ;
|
|
|
|
|
nested exception is java.net.UnknownHostException: failed to resolve 'api.github.com' after 2 queries ] with root cause
|
|
|
|
|
io.netty.resolver.dns.DnsNameResolverTimeoutException: [/168.126.63.2:53] query via UDP timed out after 5000 milliseconds (no stack trace available)
|
|
|
|
|
*/
|
|
|
|
|
.resolver(DefaultAddressResolverGroup.INSTANCE);
|
|
|
|
|
}catch(SSLException se){
|
|
|
|
|
throw BizRuntimeException.create(se.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|