You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/10/13 03:19:48 UTC

[GitHub] [shardingsphere] clown-wang opened a new issue #13013: Proxy中设置Netty的SslContext连接后,无法正常使用

clown-wang opened a new issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013


   在初始化Netty配置中配置了双向认证,配置后无法正常使用了,日志终止在初次Write to Client处
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] clown-wang edited a comment on issue #13013: Config Proxy Netty SslContext no use!

Posted by GitBox <gi...@apache.org>.
clown-wang edited a comment on issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013#issuecomment-942857122


   > Hi @clown-wang , which version of sharding-proxy do you use, `5.0.0-beta` or master branch?
   > 
   > And could you provide your Netty SslContext initialization code?
   
   Has solved last nigtht.PacketCodec and SslContext are in the wrong order to encode data.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] sandynz commented on issue #13013: Config Proxy Netty SslContext no use!

Posted by GitBox <gi...@apache.org>.
sandynz commented on issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013#issuecomment-942212344


   Hi @clown-wang , which version of sharding-proxy do you use, `5.0.0-beta` or master branch?
   
   And could you provide your Netty SslContext initialization code?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] clown-wang edited a comment on issue #13013: Config Proxy Netty SslContext no use!

Posted by GitBox <gi...@apache.org>.
clown-wang edited a comment on issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013#issuecomment-942857122


   > Hi @clown-wang , which version of sharding-proxy do you use, `5.0.0-beta` or master branch?
   > 
   > And could you provide your Netty SslContext initialization code?
   
   Has solved last nigtht.PacketCodec and SslContext are in the wrong order to encode data.
   I tried instance a new SslChannelInitializer in childHandler method.Like this:
   ```
   private void initServerBootstrap(final ServerBootstrap bootstrap) throws SSLException {
           SslContext sslContext=  initSslContent();
   
           bootstrap.group(bossGroup, workerGroup)
                   .channel(Epoll.isAvailable() ? EpollServerSocketChannel.class : NioServerSocketChannel.class)
                   .option(ChannelOption.SO_BACKLOG, 128)
                   .option(ChannelOption.WRITE_BUFFER_WATER_MARK, new WriteBufferWaterMark(8 * 1024 * 1024, 16 * 1024 * 1024))
                   .option(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT)
                   .childOption(ChannelOption.ALLOCATOR, PooledByteBufAllocator.DEFAULT)
                   .childOption(ChannelOption.TCP_NODELAY, true)
                   .handler(new LoggingHandler(LogLevel.DEBUG))
                   .childHandler(new SslChannelInitializer(sslContext))
                   .childHandler(new ServerHandlerInitializer(FrontDatabaseProtocolTypeFactory.getDatabaseType(),
                           null));
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] RaigorJiang commented on issue #13013: Proxy中设置Netty的SslContext连接后,无法正常使用

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013#issuecomment-941932743


   Hello @clown-wang , for English only, please translate the title, thank you.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] clown-wang commented on issue #13013: Config Proxy Netty SslContext no use!

Posted by GitBox <gi...@apache.org>.
clown-wang commented on issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013#issuecomment-942857122


   > Hi @clown-wang , which version of sharding-proxy do you use, `5.0.0-beta` or master branch?
   > 
   > And could you provide your Netty SslContext initialization code?
   
   Has solved last nigtht.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] RaigorJiang commented on issue #13013: Proxy中设置Netty的SslContext连接后,无法正常使用

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013#issuecomment-941932743


   Hello @clown-wang , for English only, please translate the title, thank you.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] clown-wang closed issue #13013: Config Proxy Netty SslContext no use!

Posted by GitBox <gi...@apache.org>.
clown-wang closed issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] sandynz commented on issue #13013: Config Proxy Netty SslContext no use!

Posted by GitBox <gi...@apache.org>.
sandynz commented on issue #13013:
URL: https://github.com/apache/shardingsphere/issues/13013#issuecomment-942212344


   Hi @clown-wang , which version of sharding-proxy do you use, `5.0.0-beta` or master branch?
   
   And could you provide your Netty SslContext initialization code?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org