apupier commented on code in PR #22981:
URL: https://github.com/apache/camel/pull/22981#discussion_r3193785134
##########
components/camel-as2/camel-as2-api/src/main/java/org/apache/camel/component/as2/api/AS2ServerConnection.java:
##########
@@ -639,6 +639,10 @@ public void registerConsumerConfiguration(String path,
AS2ConsumerConfiguration
consumerConfigurations.put(path, config);
}
+ public int getLocalPort() {
+ return serversocket != null ? serversocket.getLocalPort() : -1;
Review Comment:
shouldn't we return 0 to let the system pick an ephemeral port?
--
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]