mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-08 09:42:06 +03:00
Refactor QuicClient and Server transports to process ReceivedUdpPackets with attached metadata
Summary: ReceivedUdpPacket has attached metadata (currently timings and later in the stack, tos values). Rather than passing the metadata separately in the read path for the client and the server, this propagates the ReceivedUdpPacket further up so this metadata is easier to use in the rest of the stack. Reviewed By: mjoras Differential Revision: D54912162 fbshipit-source-id: c980d5b276704f5bba780ac16a380bbb4e5bedad
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fdf1b30412
commit
7f2cb16408
@@ -273,10 +273,10 @@ class TestQuicTransport
|
||||
|
||||
void onReadData(const folly::SocketAddress&, ReceivedUdpPacket&& udpPacket)
|
||||
override {
|
||||
if (!udpPacket.buf) {
|
||||
if (udpPacket.buf.empty()) {
|
||||
return;
|
||||
}
|
||||
folly::io::Cursor cursor(udpPacket.buf.get());
|
||||
folly::io::Cursor cursor(udpPacket.buf.front());
|
||||
while (!cursor.isAtEnd()) {
|
||||
// create server chosen connId with processId = 0 and workerId = 0
|
||||
ServerConnectionIdParams params(0, 0, 0);
|
||||
|
Reference in New Issue
Block a user