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
It would be amazing if there was a way you could get the port number Cro listens at when you pass it a "0" for the port number. This would let Cro bind to a free port, which could be very useful in test harnesses, as hardcoding a port in the test harness is not guaranteed to be free from collisions. However, today there is no way that I know of to determine the port number it binds to if using a dynamic port, at least not in a portable way.
The text was updated successfully, but these errors were encountered:
FWIW, I'm working around this by swapping out the listener in the service object with one that lets me get the port number. But using Cro this way feels...really wrong. :)
It would be amazing if there was a way you could get the port number Cro listens at when you pass it a "0" for the port number. This would let Cro bind to a free port, which could be very useful in test harnesses, as hardcoding a port in the test harness is not guaranteed to be free from collisions. However, today there is no way that I know of to determine the port number it binds to if using a dynamic port, at least not in a portable way.
The text was updated successfully, but these errors were encountered: