You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] <shenyu can't recognize random port> #4575
when we use microservice architecture, the port is unimportant, so we always use 0(server.port)or -1(dubbo.protocol.port)to use a random port.
But shenyu will just use 0 and -1 when running.
Is there any way to get it to the actual port? Or must I use a fix port when I use shenyu?
@yu199195 I upload a demo.
I use random tomcat port(set server.port=0) and random dubbo port(set dubbo.protocol.port=-1), tomcat and dubbo will use a random usable port, but shenyu will print error log like below
Activity
yu199195 commentedon Apr 20, 2023
I don't understand what you mean at all?
whats shenyu version? What features do you use it for?
KerwinAusten commentedon Apr 21, 2023
@yu199195 I upload a demo.
I use random tomcat port(set server.port=0) and random dubbo port(set dubbo.protocol.port=-1), tomcat and dubbo will use a random usable port, but shenyu will print error log like below
yu199195 commentedon Apr 21, 2023
whats shenyu version? in now used this function:
KerwinAusten commentedon Apr 21, 2023
I use version 2.5.1 but it seems dosen't work.

dark-hxx commentedon May 25, 2023
I have the same problem. How can I solve it