Skip to content
Snippets Groups Projects
  1. Nov 05, 2019
    • Amir Livneh's avatar
      Fix condition checking for Initial packet · b2268957
      Amir Livneh authored
      The code previously determined whether a packet was an Initial packet by looking at its type value, without first checking it was not a Version Negotiation packet. In the case of a Version Negotiation packet, reading the type value returned the random value in the Unused field. This occasionally caused Version Negotiation packets to be misinterpreted as Initial packets. When this happened, ngtcp2_conn_read_pkt() returned NGTCP2_ERR_DRAINING instead of NGTCP2_ERR_RECV_VERSION_NEGOTIATION.
      b2268957
  2. Nov 04, 2019
  3. Nov 02, 2019
  4. Nov 01, 2019
  5. Oct 31, 2019
  6. Oct 30, 2019
    • Daniel Bevenius's avatar
      Add default clause to switch statements · 39517705
      Daniel Bevenius authored
      When compiling with the flag -Wswitch-enum there are a number of
      warnings like the following:
      ngtcp2_conn.c:7960:11: warning:
      7 enumeration values not handled in switch:
        'NGTCP2_CS_CLIENT_INITIAL',
        'NGTCP2_CS_CLIENT_WAIT_HANDSHAKE',
        'NGTCP2_CS_CLIENT_TLS_HANDSHAKE_FAILED'... [-Wswitch]
        switch (conn->state) {
      
      This commit adds a default clause to avoid this as they are reported as
      errors on the CI server and failing the build.
      39517705
  7. Oct 29, 2019
  8. Oct 28, 2019
  9. Oct 27, 2019