-
Notifications
You must be signed in to change notification settings - Fork 999
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
refactor(relay): remove KeepAlive::Until
#4676
refactor(relay): remove KeepAlive::Until
#4676
Conversation
Since this change doesn't break anything, I guess we can just merge it? |
Possibly! I haven't looked closely at the code yet. Is there an opportunity to also refactor towards a |
Since I will check on the other PRs. |
Well, I just thought about this a bit more in detail and it might not be that easy unfortunately. It is correct that a relay server never does anything on its own on an inbound connection. Those are opened by clients to make reservations with we have to keep the connection alive for this to work properly. I think this might be a valid case to have a functionality like
I pushed a follow-up commit that implements that. Curious to hear what @mxinden thinks. |
I am wondering why we even construct a handler for outbound connections. @mxinden would you agree that we don't need to support the relay protocol on outbound connections? Would it be fair to say that this is a left-over from when we didn't distinguish between inbound and outbound connections as explicitly? |
I see a couple of scenarios, none of them particularly common, for supporting circuit relay v2 streams on an outbound connection as a relay server:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment. Otherwise this looks good to me.
KeepAlive::Until
KeepAlive::Until
Description
KeepAlive::Until
is being deprecated. We emulate the functionality within theConnectionHandler
to ensure relayed connections don't get immediately closed when a client establishes one.Related: #3844.
Related: #4656.
Notes & open questions
Change checklist