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
As of today, malloy::server::listener binds starts to listen in the constructor. If the acceptor could not start listening (for example because the end-point is already in use), there is no way for a consumer to catch this programmatically.
Possible solutions:
Throw in the constructor (meh)
Move relevant pieces of code from constructor to run() and return boolean.
The text was updated successfully, but these errors were encountered:
Tectu
changed the title
server::listener: provide method of catching binding errors
server::listener: provide method for catching binding errors
Mar 4, 2023
As of today,
malloy::server::listener
binds starts to listen in the constructor. If the acceptor could not start listening (for example because the end-point is already in use), there is no way for a consumer to catch this programmatically.Possible solutions:
run()
and return boolean.The text was updated successfully, but these errors were encountered: