finefuture commented on PR #14077:
URL: https://github.com/apache/dubbo/pull/14077#issuecomment-2114804361
> There is a problem here. If the server-side and client-side protocols are
inconsistent, configClientPipeline obtains the protocol name of the server side
through url.getProtocol. At this time, ProtocolConfig will not be obtained from
ConfigManager.
>
> I'm fixing it.
This problem can be solved by using the application's own ProtocolConfig. If
the user wants to configure triple, he can set it directly under a single
protocol. When using multiple protocols, he can set the protocol for which
TripleConfig is configured as the default protocol.
```java
return
url.getOrDefaultApplicationModel().getApplicationConfigManager().getDefaultProtocols().stream()
.findFirst()
.orElseThrow(() -> new IllegalStateException("There's no
default ProtocolConfig specified."))
.getTriple();
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]