Comments (7)
Thank you for reporting this. Firstly, the documentation you referenced is from Dubbo, not Dubbo-go. Therefore, the default port is not the same as the Dubbo's. Then, the condition of using ramdon port doesn't have problem, since the port should be specified to -1
, instead of leaving empty.
from dubbo-go.
@justxuewei Thank you your reply, But use "-1" in port field of string type, the length size is greater than 0, if i keep empty the field default is "20000",
there you are set the "default" tag value "20000", please give a simple of how to use random port?
thank you very much
from dubbo-go.
use "-1" in port field of string type, the length size is greater than 0
What is happend while the length size is greater than 0? Does it not work while setting the port to -1
?
Could you give me a link to this line of code? Instead of a picture. I'll take a look at this.
from dubbo-go.
Protocol Init method
https://github.com/apache/dubbo-go/blob/main/config/protocol_config.go
https://github.com/creasty/defaults/blob/master/defaults.go
the code you are parse "default" tag, Port default "20000"
https://github.com/apache/dubbo-go/blob/main/config/protocol_config.go
my dubbogo.yaml config
dubbo:
application:
name: go.micro.api.gateway
registries:
nacos:
protocol: nacos
address: 192.168.1.236:8848
protocols:
triple:
name: tri
port: -1
from dubbo-go.
Thanks for report this issue. I've pushed a patch to fix the issue: #2384. Please let me know if you have any questions.
from dubbo-go.
Ok, thank you, i will let you know if i meet any question in use.
from dubbo-go.
Thanks for report this issue. I've pushed a patch to fix the issue: #2384. Please let me know if you have any questions.
感觉是判断-1才特殊处理?现在无法解析就随机分配 无法解析结束进程panic感觉比较合理
from dubbo-go.
Related Issues (20)
- Sample and test-case tasks HOT 1
- Some feature plan and thoughts. HOT 1
- Failed to start using nacos as configuration center HOT 1
- the default maxMsgLength for getty param HOT 2
- sentinel.TraceError和sentinel.Exit没有被调用 HOT 2
- logger zap format bug
- client can't get attachments which is set from server HOT 5
- triple request missed http header like scheme, host etc. HOT 3
- protoc-gen-go-triple 在一个proto文件有多个service的情况下有bug
- can't go build on protoc-gen-go-triple
- 有一个panic导致应用挂了 HOT 5
- `client.WithClientCheck()` should set `check` to false instead of true. HOT 2
- Java interoperability issue, `go-client` call `java-server` failed when calling MetadataService during service discovery. HOT 1
- After the streaming call ends, client response.tailer() returns empty
- Test case bug, a contradiction in its logic.
- Community weekly meeting record (2024.04.26)
- 使用配置来提供服务,filter不生效 HOT 6
- Url.Clone HOT 1
- dubbogo-cli show show zk detail err
- Does anyone know about this bug? memory leak
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubbo-go.