-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUIC] QuicListener.ListenEndPoint returns a port of 0 if Start() hasn't been called #2262
Comments
This comment has been minimized.
This comment has been minimized.
Having a property throw usually isn't great, but I suppose you can argue that this is incorrect usage and thus reasonable. I do think it raises the question: why do we have a separate call to Start()? What would you ever do between calling the QuicListener constuctor and Start()? Seems like the answer is "nothing useful", and as such we should just get rid of Start. |
I suppose another option would be to make the constructor do the equivalent of calling Socket.Bind, but not Socket.Listen. This would at least give you a useful value for LocalEndPoint. Then, Start() would do the equivalent of Listen. |
Triage: We want to merge |
We should probably make this property throw if the listener hasn't been started.
CC @jkotalik
The text was updated successfully, but these errors were encountered: