Skip to content
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

Dont call virtual method GetStatelessResetToken in ctor QuicSession::QuicSession #26

Conversation

slusnys
Copy link

@slusnys slusnys commented Oct 22, 2022

QuicSession class calls the virtual method GetStatelessResetToken() token in constructor

  • Virtual methods should not be called in constructors, as the virtual call mechanism is disabled.
    This might lead to a wrong tokens being returned.

@slusnys slusnys changed the title Dont call virtual get stateless reset token in ctor Dont call virtual method GetStatelessResetToken in ctor QuicSession::QuicSession Oct 22, 2022
- Virtual methods should not be called in constructors, as the virtual call mechanism is disabled.
  This might lead to a wrong tokens being returned.
@slusnys slusnys force-pushed the dont_call_virtual_GetStatelessResetToken_in_ctor branch from 9284a48 to e17ebaf Compare October 26, 2022 08:24
copybara-service bot pushed a commit that referenced this pull request Nov 2, 2022
…ation. This avoids virtual function GetStatelessResetToken be called in QuicSession constructor.

This change is an internal landing of #26 authored by slusnys.

Protected by FLAGS_quic_reloadable_flag_quic_delay_setting_stateless_reset_token.

PiperOrigin-RevId: 485586079
@bencebeky
Copy link

Thank you. This proposal was merged internally with flag protection at db4dca8.

@bencebeky bencebeky closed this Dec 2, 2022
@bencebeky
Copy link

FYI the flag has been deprecated at 0584360, this change is now complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants