• Brandon Schlinker's avatar
    Support TIMESTAMP_TX flag · eccdeae9
    Brandon Schlinker authored
    Summary:
    The `TIMESTAMP_TX` flag can be used to signal a request TX / NIC timestamping. This flag needs to be passed through to the application via the `SendMsgParamsCallback::getAncillaryData` callback so that the application can populate a socket control message with the ancillary data required to signal the timestamping request.
    
    `folly::AsyncSSLSocket` has extra logic for tracking the end of record (EOR) byte, but this logic currently only passes through `WriteFlags::EOR`. This diff adds support for passing through any flag specified as an EOR-related write flag when the EOR byte is written. As part of this change, the relevant unit tests are extended / cleaned up (some of them still reference MSG_EOR, which is out of date).
    
    Reviewed By: yfeldblum
    
    Differential Revision: D15465432
    
    fbshipit-source-id: 2ab5619607959dd829427a695aefd95a33b4abce
    eccdeae9
AsyncSocket.h 42 KB