Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
quic: fixup session ticket app data todo comments
  • Loading branch information
jasnell committed Aug 17, 2020
commit b92fa36673d08dff0ea43dfbfc1ec183b4520421
19 changes: 8 additions & 11 deletions src/quic/node_quic_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -616,20 +616,17 @@ class QuicApplication : public MemoryRetainer,

virtual void ResumeStream(int64_t stream_id) {}

virtual void SetSessionTicketAppData(const SessionTicketAppData& app_data) {
// TODO(@jasnell): Different QUIC applications may wish to set some
// application data in the session ticket (e.g. http/3 would set
// server settings in the application data). For now, doing nothing
// as I'm just adding the basic mechanism.
}

// Different QUIC applications may set some application data in
// the session ticket (e.g. http/3 would set server settings in the
// application data). By default, there's nothing to set.
virtual void SetSessionTicketAppData(const SessionTicketAppData& app_data) {}

// Different QUIC applications may set some application data in
// the session ticket (e.g. http/3 would set server settings in the
// application data). By default, there's nothing to get.
virtual SessionTicketAppData::Status GetSessionTicketAppData(
const SessionTicketAppData& app_data,
SessionTicketAppData::Flag flag) {
// TODO(@jasnell): Different QUIC application may wish to set some
// application data in the session ticket (e.g. http/3 would set
// server settings in the application data). For now, doing nothing
// as I'm just adding the basic mechanism.
return flag == SessionTicketAppData::Flag::STATUS_RENEW ?
SessionTicketAppData::Status::TICKET_USE_RENEW :
SessionTicketAppData::Status::TICKET_USE;
Expand Down