@ -42,11 +42,32 @@ public class CustomBlockHoundIntegration implements BlockHoundIntegration {
@@ -42,11 +42,32 @@ public class CustomBlockHoundIntegration implements BlockHoundIntegration {
builder . allowBlockingCallsInside ( "org.springframework.util.MimeTypeUtils" ,
"generateMultipartBoundary" ) ;
// SPRING DATA REDIS RELATED
// Uses Unsafe#park
builder . allowBlockingCallsInside (
"org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory" ,
"getReactiveConnection" ) ;
// NETTY RELATED
// Uses Thread#sleep
builder . allowBlockingCallsInside ( "io.netty.channel.nio.NioEventLoop" ,
"handleLoopException" ) ;
builder . allowBlockingCallsInside (
"io.netty.util.concurrent.SingleThreadEventExecutor" , "confirmShutdown" ) ;
// Uses Unsafe#park
builder . allowBlockingCallsInside ( "io.netty.util.concurrent.GlobalEventExecutor" ,
"execute" ) ;
// SECURITY RELATED
// For HTTPS traffic
builder . allowBlockingCallsInside ( "io.netty.handler.ssl.SslHandler" ,
"channelActive" ) ;
builder . allowBlockingCallsInside ( "io.netty.handler.ssl.SslHandler" ,
"channelInactive" ) ;
builder . allowBlockingCallsInside ( "io.netty.handler.ssl.SslHandler" , "unwrap" ) ;
builder . allowBlockingCallsInside ( "io.netty.handler.ssl.SslContext" ,
"newClientContextInternal" ) ;