aofall commented on issue #13305: URL: https://github.com/apache/dubbo/issues/13305#issuecomment-1869301042
> @aofall Is there any progress? The `URL` for consumer is different to provider, the consumer only initiates requests and does not need to constantly listen on a port, so it is normal not to get a port. And since the int type cannot be null, getting 0 is expected behavior. If we need to get the port set in the protocol, we need to add more parameters to the `URL`. eg. `consumer://192.168.190.137/demo.dubbo.api.DemoService?application=DemoConsumerApplication&background=false&category=providers,configurators,routers&dubbo=2.0.2&executor-management-mode=isolation&file-cache=true&interface=demo.dubbo.api.DemoService&logger=slf4j&methods=sayHello&pid=21820&qos.enable=false&reference.filter=appended&release=3.2.11-SNAPSHOT&side=consumer&sticky=false&timeout=500000&unloadClusterRelated=false` `provider://192.168.190.137:50051/demo.dubbo.api.DemoService?anyhost=false&application=DemoProviderApplication&background=false&bind.ip=192.168.190.137&bind.port=50051&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&executor-management-mode=isolation&file-cache=true&generic=false&interface=demo.dubbo.api.DemoService&logger=slf4j&methods=sayHello&pid=25180&prefer.serialization=fastjson2,hessian2&qos.enable=false&release=3.2.11-SNAPSHOT&service-name-mapping=true&service.filter=appended&side=provider&timeout=500000` -- 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]
