You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/03/17 15:59:36 UTC

[GitHub] [camel-kafka-connector] ffang opened a new issue #1109: NetworkUtils should be able to hold a free port for later usage

ffang opened a new issue #1109:
URL: https://github.com/apache/camel-kafka-connector/issues/1109


   Currently the starting port is always 45152, this can cause a problem in scenario like
   
   1. In my test I check 45152 as a free port, so I define a PORT to refer it in my class INIT code; and I use it later and not bind to this listening port immediately 
   2. Another thread(Like Kafka service) check 45152 as a free port and bind to it 
   3. I my test when I really need to use this PORT, I get "Address already bind" exception
   
   I think we should move up starting port for each time when a free port is checked and pinned for later usage to avoid such conflicts


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] ffang commented on issue #1109: NetworkUtils should be able to hold a free port for later usage

Posted by GitBox <gi...@apache.org>.
ffang commented on issue #1109:
URL: https://github.com/apache/camel-kafka-connector/issues/1109#issuecomment-801348781


   Open a PR
   https://github.com/apache/camel-kafka-connector/pull/1111


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] tadayosi commented on issue #1109: NetworkUtils should be able to hold a free port for later usage

Posted by GitBox <gi...@apache.org>.
tadayosi commented on issue #1109:
URL: https://github.com/apache/camel-kafka-connector/issues/1109#issuecomment-811626332


   Fixed with #1111


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] tadayosi closed issue #1109: NetworkUtils should be able to hold a free port for later usage

Posted by GitBox <gi...@apache.org>.
tadayosi closed issue #1109:
URL: https://github.com/apache/camel-kafka-connector/issues/1109


   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org