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
There are cases when you would like to bind to random port.
Intuitive way to do so is to set port to zero.
Unfortunately, there is no way to extract real port. API method just return configured port instead of getting it directly from socket.
I, personally, would prefer separated method (like "bindPort()") instead of altering current method behaviour. This also helps to maintain backward compatibility.
The text was updated successfully, but these errors were encountered:
There are cases when you would like to bind to random port.
Intuitive way to do so is to set port to zero.
Unfortunately, there is no way to extract real port. API method just return configured port instead of getting it directly from socket.
I, personally, would prefer separated method (like "bindPort()") instead of altering current method behaviour. This also helps to maintain backward compatibility.
The text was updated successfully, but these errors were encountered: