CHANGELOG revision b329a00e
12020-07-22 2 - 2.18.2 3 - [BUGFIX] Send prediction: lone path challenges do not get squeezed out 4 - Fix crash in http_client: now -K and -B can be used simultaneously 5 62020-07-14 7 - 2.18.1 8 - [FEATURE] Implement the "QUIC bit grease" extension. 9 - [BUGFIX] Selecting CID used for logging on client. 10 - [BUGFIX] Header protection assertion. 11 - [BUGFIX] Server: enable SSL key logging when cert lookup callback 12 is not set. 13 - Remove some dead code. 14 152020-07-06 16 - 2.18.0 17 - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT" 18 always refers to early data, meaning a request that the server can 19 reply to in the very first return flight. A more appropriate name 20 for what we support on the client site is "session resumption," which 21 is standard TLS terminology. Later, when we add support for 0-RTT 22 (early data), we can use the 0-RTT terminology again, this time in 23 proper context. 24 - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL. 25 - [BUGFIX] Make connection tickable when it's marked as closed. 26 - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode. 27 - Several documentation fixes and improvements. 28 - Minor code cleanup. 29 302020-06-24 31 - 2.17.2 32 - [BUGFIX] Infinite loop in stream: advance read offset when discarding 33 data. 34 - [OPTIMIZATION] Header protection: only initialize cipher once. 35 - [OPTIMIZATION] Batch header protection application. 36 372020-06-18 38 - 2.17.1 39 - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support. 40 - [BUGFIX] Check that scheduled packets are also sendable when 41 calculating a connection's "tickable" property. 42 - [BUGFIX] Don't count scheduled packets as in-flight when pacer is 43 checked on tick. 44 - gQUIC: delay calling on_new for pushed stream until headers are 45 available. 46 - Allow nested calls to lsquic_engine_connect(). 47 482020-06-15 49 - 2.16.3 50 - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn 51 instead of dropping them. 52 - [BUGFIX] Crash: check decrypt context before using it. This regression 53 was introduced in 2.16.2. 54 552020-06-12 56 - 2.16.2 57 - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in 58 ClientHello. This change requires using a newer version of BoringSSL. 59 - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor. 60 - [BUGFIX] IETF QUIC client: narrow migration check to a single path. 61 - [BUGFIX] NULL dereference: set function pointers for alarm for path 62 challenges 2 and 3. 63 - [BUGFIX] HTTP/3 headers may be followed immediately by trailers. 64 - [BUGFIX] Log messages when SCID changes. 65 662020-06-09 67 - 2.16.1 68 - [FEATURE] Use "no-progress timeout" after which connection is closed. 69 - [BUGFIX] Select new SCID when current SCID is retired. 70 - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during 71 mini/full handoff. 72 - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated. 73 - [BUGFIX] Mini conn: consider amplification when deciding to return 74 TICK_SEND. 75 - [BUGFIX] Don't double-count tag length in amplification logic. 76 - [BUGFIX] Don't squeeze out lone path challenges. 77 - [BUGFIX] Log messages dealing with scheduled packet queue squeezing. 78 - [BUGFIX] don't wipe current path if no path challenge responses 79 come back. 80 - [BUGFIX] When path is reset, don't lose path_id which is used for 81 logging. 82 - Downgrade flow control violations to info log level from warnings. 83 - Fix connection cap extra check, avoid checks in nested calls. 84 - Fix some unit tests when extra checks are enabled. 85 - Use ls-hpack 2.2.1. 86 - Turn off unconditional extra checks for IETF clients. 87 - Extra checks: don't verify sent size of hello packets. Client 88 changes DCID length and this check will fail. 89 902020-06-03 91 - 2.16.0 92 - [API] Use lsxpack_header v206. 93 - [FEATURE] Windows supported. 94 - [BUGFIX] Fix uninitialized variable use in client (regression in 95 2.15.0). 96 - Use ls-hpack 2.2.0. 97 - Use ls-qpack 2.2.0. 98 - Sample programs: fix the way maximum number of packets is 99 calculated. 100 - Remove some dead code. 101 1022020-05-27 103 - 2.15.0 104 - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support. 105 - [BUGFIX] Ignore Retry packets after other packets are decrypted 106 successfully. 107 - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte 108 length minimum. 109 - http_client: fix and optimize lsxpack_header allocator. 110 - Drop support for Internet Draft 25. 111 1122020-05-19 113 - 2.14.8 114 - Support Android. 115 - Rerrange tree: move command-line examples into bin/ and unit 116 tests into tests/ from test/unittests/. 117 1182020-05-12 119 - 2.14.7 120 - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050. 121 - [BUGFIX] Frame reader: skip headers if target stream is closed. 122 1232020-05-06 124 - 2.14.6 125 - [BUGFIX] Fix amplification mitigation in 0-RTT case. 126 - [BUGFIX] IETF mini connection should not tickable if cannot send 127 a packet due to amplification. 128 - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2. 129 - [BUGFIX] Qlog server certificates for IETF QUIC connections. 130 - [BUGFIX] Uninitialized struct padding usage in tokgen (benign). 131 - [BUGFIX] Incorrect argument to shi_lookup() (benign). 132 1332020-04-29 134 - 2.14.5 135 - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match. 136 - [BUGFIX] Frame reader: skip headers if target stream is not found. 137 - [BUGFIX] Log message in QPACK decoder handler. 138 1392020-04-24 140 - 2.14.4 141 - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams. 142 - [BUGFIX] IETF client: set correct flags on bidirectional streams. 143 - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned 144 streams. 145 - [BUGFIX] Do not call header callbacks after stream is closed. 146 - Use ls-qpack 2.1.1 147 1482020-04-15 149 - 2.14.3 150 - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback. 151 - [BUGFIX] Use ls-hpack 2.1.1 152 - Improve stream code readability. 153 - Use ls-qpack 2.0.5 154 1552020-04-08 156 - 2.14.2 157 - [BUGFIX] Use ls-qpack 2.0.4 158 - [BUGFIX] Honor max packet size on the client and when path changes. 159 - http_server: fix prepare_decode() function. 160 1612020-04-07 162 - 2.14.1 163 - [BUGFIX] Place connections on tickable queue when sending is reenabled. 164 - [BUGFIX] A connection is tickable if it has unsent packets. 165 - [BUGFIX] Heed peer's max_packet_size transport parameter. 166 1672020-03-30 168 - 2.14.0 169 - [API] Use lsxpack_header structure to send HTTP headers. 170 - [OPTIMIZATION] nocopy's readable_bytes() function. 171 - http_server: fix typo in error message 172 - Use ls-hpack 2.1.0. 173 - Use ls-qpack 2.0.0. 174 1752020-03-23 176 - 2.13.3 177 - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked. 178 1792020-03-13 180 - 2.13.2 181 - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode(). 182 1832020-03-12 184 - 2.13.1 185 - [API] Use lsxpack_header structure to process incoming headers. 186 - [BUGFIX] Fix assertion when zero-padding Initial packet. 187 - [BUGFIX] Use idle timeout before we learn of peer's value. 188 - Use ls-hpack 2.0.1 -- has lsxpack_header changes. 189 - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not 190 used yet). 191 - Code cleanup: prefix exported functions with "lsquic_". 192 1932020-03-02 194 - 2.12.0 195 - [FEATURE] QUIC timestamps extension. 196 - [API] New: ea_alpn that is used when not in HTTP mode. 197 - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC. 198 - [BUGFIX] Benign double-free -- issue #110. 199 - [BUGFIX] Printing of transport parameters. 200 2012020-02-24 202 - 2.11.1 203 - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support. 204 - [FEATURE] Add experimental delayed ACKs extension. 205 - Drop support for Internet Draft 24. 206 - Code cleanup. 207 2082020-02-14 209 - 2.10.6 210 - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error. 211 - [BUGFIX] Send gap warning due to missing poisoned packet. 212 - Stream unit test for scenario in issue #106. 213 2142020-02-13 215 - 2.10.5 216 - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct 217 time. 218 - Refactor transport parameters module. 219 - Minor code cleanup. 220 2212020-02-11 222 - 2.10.4 223 - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received. 224 - [BUGFIX] Don't treat garbage UDP padding as library error; ignore 225 it instead. 226 - [BUGFIX] Fix compilation on FreeBSD (missing header). 227 - Code cleanup: remove unnecessary #includes. 228 2292020-01-31 230 - 2.10.3 231 - [BUGFIX] Cancel path responses and challenges on old path when 232 switching to new path 233 - Logging network path information. 234 2352020-01-30 236 - 2.10.2 237 - [BUGFIX] Do not delay ACKs for Initial and Handshake packets. 238 - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn 239 promotion. 240 - Logging improvements. 241 - http_client: discard data faster. 242 2432020-01-29 244 - 2.10.1 245 - [BUGFIX] Coalesced packets could get longer than normal packet 246 size. 247 - Add spin bit configuration option es_spin (-o spin=[01]). 248 - Disable spin bit in 1/16 of connections. 249 - Improve logging a bit. 250 2512020-01-28 252 - 2.10.0 253 - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support. 254 - [API] Drop support for ID-23. 255 - [BUGFIX] Set key phase bit on outgoing packets correctly. 256 - Code cleanup. 257 2582020-01-20 259 - 2.9.0 260 - [API] Drop support for Q039. 261 - Improve ACK-queuing logic. Send an ACK once in a while if 262 peer keeps on sending non-ack-eliciting packets. 263 - Improve Alt-Svc string: Q050 and later are not included in 264 the old-style "quic" string. 265 - Send stateless resets if connection could not be promoted. 266 - Schedule MAX_DATA if needed when DATA_BLOCKED is received. 267 - Use ls-qpack 0.11.2 -- needed for server push optimization. 268 - Code cleanup: handle some error cases, improve logging. 269 2702020-01-16 271 - 2.8.9 272 - [BUGFIX] Use ls-qpack 0.11.1 273 - [OPTIMIZATION] Generate random bytes in batches. 274 - Change loss_bits transport parameter ID to 0x1057 following 275 latest draft. 276 - Randomize period with which PINGs are sent to elicit ACKs. 277 - Some refactoring and code cleanup. 278 2792020-01-14 280 - 2.8.8 281 - [BUGFIX] Invalid read when parsing IETF transport parameters 282 (this was benign). 283 - [OPTIMIZATION] Frame bundling when using buffered packets in 284 IETF QUIC: a) flush QPACK decoder stream and b) include ACKs 285 in opportunistic fashion. 286 - Fix HTTP/3 framing unit test. 287 - Code cleanup. 288 2892020-01-09 290 - 2.8.7 291 - [BUGFIX] Initial packet size check for IETF mini conn applies to 292 UDP payload, not QUIC packet. 293 - Support old and new school loss_bits transport parameter. 294 - Use Q run length of 64 as suggested in the loss bits Draft. 295 - Undo square wave count when packet is delayed. 296 - Code cleanup; minor fixes. 297 2982020-01-06 299 - 2.8.5 300 - [HTTP3] Verify number of bytes in incoming DATA frames against 301 content-length. 302 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 303 decoder window. This addresses a potential attack whereby client 304 can cause the server to keep allocating memory. See Security 305 Considerations in the QPACK draft. 306 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 307 - [BUGFIX] Init IETF connection flow controller using correct setting. 308 - [BUGFIX] Fix unintended sign extension when removing header protection. 309 - Code cleanup and minor fixes. 310 3112019-12-30 312 - 2.8.1 313 - [FEATURE] Use occasional packet number gaps to detect optimistic 314 ACK attacks. 315 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 316 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 317 ACK frames. 318 - IETF QUIC: use RTT estimate in ack timeout calculation. 319 - IETF handshake: abort conn when unexpected errors occur. 320 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 321 - Server: enforce 1200 byte Initial minimum packet size. 322 - [CLEANUP] Remove code to disable gQUIC crypto. 323 - [CLEANUP] Remove n_timestamps from ACK info struct. 324 - Optimize driver: reuse previous ancillary message when possible. 325 3262019-12-23 327 - 2.8.0 328 - [FEATURE] Add support for Q050. 329 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 330 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 331 logging. 332 3332019-12-18 334 - 2.7.3 335 - [DEBUG] Further dedup next advisory tick messages when reason is 336 the same. 337 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 338 GitHub bug #94. 339 - Use Cubic by default again instead of BBR, as it delivers more 340 consistent performance. 341 3422019-12-11 343 - 2.7.2 344 - [BUGFIX] Send controller: update scheduled bytes when DCID length 345 changes (IETF client). 346 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 347 that we use loss chains. 348 - [PORTABILITY] Fix build on Alpine Linux. 349 - [PORTABILITY] Fix build using XCode. 350 - Client initial DCID length: use RAND_bytes() instead of rand(3). 351 - Add unit tests for connection min heap. 352 - [DEBUG] Log CID in gQUIC handshake module 353 - [DEBUG] Turn on extra checks for IETF client send controller. 354 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 355 - [DEBUG] QPACK decoder handler: log header error code. 356 3572019-12-05 358 - 2.7.1 359 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 360 ignore_init() makes an assumption that the send controller has access 361 to all outgoing packets. This change wraps a few IETF full connection 362 methods to delay calling ignore_init() until the engine returns all 363 outgoing packets that were batched. 364 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 365 This needs to be done because the value of errno may be lost on 366 some platforms. 367 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 368 - [BUGFIX] Do not cancel header block processing after failure, as 369 QPACK releases the reference in that case. 370 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 371 - Several small improvements to the test server. 372 3732019-11-27 374 - 2.7.0 375 - [API, FEATURE] Close connection immediately when ea_packets_out() 376 fails with errno != EAGAIN. The API change is that errno is now 377 examined. Make sure to set it if using something other than 378 sendmsg() to send packets. 379 - [CLEANUP] Immediate close logic in IETF full conn. 380 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 381 3822019-11-22 383 - 2.6.7 384 - [FEATURE] Implement the QL extension (offered by default). 385 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 386 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 387 - [DEBUG] Turn on debug message for next advisory tick. 388 3892019-11-20 390 - 2.6.6 391 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 392 - [BUGFIX] Truncate log messages instead of throwing them away. 393 3942019-11-15 395 - 2.6.5 396 - [BUGFIX] High priority buffered packet queue length. 397 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 398 3992019-11-12 400 - 2.6.3 401 - [BUGFIX] Close DATA frames with empty payload correctly. 402 4032019-11-11 404 - 2.6.2 405 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 406 packets. 407 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 408 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 409 connection. 410 - [BUGFIX] Client: don't send duplicate reset tokens. 411 - [BUGFIX] Remove invalid assertion in H3 framing code. 412 - Silence a warning in send ctl by restructuring switch() statement. 413 4142019-11-08 415 - 2.6.1 416 - [BUGFIX] set retry token on all resubmitted packets. 417 - Event log: log sent packet flags. In particular, this allows one 418 to see whether token was sent. 419 - Don't migrate client if es_allow_migration is false. 420 4212019-11-07 422 - 2.6.0 423 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 424 4252019-11-07 426 - 2.5.2 427 - [BUGFIX] argument order to gQUIC client constructor. Regression 428 introduced in 2.5.0. 429 - [BUGFIX] split buffered packet error recovery: destroy the correct 430 packet. 431 4322019-11-04 433 - 2.5.1 434 - [BUGFIX] Fix double-free when emptying a packet number space. 435 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 436 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 437 verneg packets (regression introduced in 2.5.0). 438 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 439 - [OPTIMIZATION] http_server: compile regexes only once. 440 4412019-10-31 442 - 2.5.0 443 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 444 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 445 - [BUGFIX] Don't evict streams from priority iterator if there is 446 only one queue. 447 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 448 - Use ls-qpack v0.10.7. 449 4502019-10-24 451 - 2.4.10 452 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 453 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 454 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 455 values are not unique). 456 - [BUGFIX] Always set the idle alarm in IETF connection so that it 457 can time out. 458 - Use ls-qpack v0.10.6, as it silences some warnings. 459 4602019-10-21 461 - 2.4.8 462 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 463 4642019-10-15 465 - 2.4.7 466 - Add echo client and server to the distibution. 467 - Add MD5 client and server to the distibution. 468 - Fix http_client: check command-line arguments better, prevent crash. 469 - Fix IETF conn: can_write_ack() should only care about APP PNS. 470 - Client: delay stream creation until handshake succeds. 471 - Reset HTTP stream whose write end is closed prematurely. 472 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 473 - Log reason why engine is tickable. 474 4752019-10-11 476 - 2.4.6 477 - Minor code cleanup and logging improvements. 478 - Server and client programs: include library version (e.g. 2.4.6) 479 into `server' and `user-agent' headers. 480 4812019-10-08 482 - 2.4.5 483 - [OPTIMIZATION]: flush encoder stream only when necessary. 484 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 485 - [BUGFIX] Typo in IETF conn SETTINGS writer. 486 - Use latest BoringSSL. 487 4882019-10-08 489 - 2.4.4 490 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 491 - [BUGFIX] NULL dereference when H3 frame header would be split. 492 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 493 - [BUGFIX] Allow PING frames in IETF mini conn. 494 - [BUGFIX] Mini conns: don't send any packets after receiving 495 CONNECTION_CLOSE. 496 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 497 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 498 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 499 valid stream number). 500 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 501 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 502 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 503 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 504 - Update ls-qpack to v0.10.1. 505 5062019-09-30 507 - 2.4.3 508 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 509 For example, h3-Q043. Chrome will switch to using this format at 510 some point in the future. 511 - [BUGFIX] Send correct value in max_streams_uni transport param 512 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 513 to 0xFFFFFFFF 514 5152019-09-23 516 - 2.4.2 517 - [BUGFIX] H3 framing: fix zero-byte write when space is available 518 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 519 is closed 520 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 521 - [BUGFIX] Fix use-after-free in IETF full conn 522 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 523 SSL object and crypto streams. 524 5252019-09-18 526 - 2.4.0 527 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 528 5292019-09-13 530 - 2.3.1 531 - [BUGFIX] Fix memory leaks 532 - [BUGFIX] Fix unit tests 533 5342019-09-12 535 - 2.3.0 536 - [FEATURE] BBR congestion control is on by default 537 - [BUGFIX] BBR app-limited logic 538 - [BUGFIX] Fix uninitialized warnings in IETF 539 - [BUGFIX] Update ls-qpack to v0.9.14 540 - [CLEANUP] Code cleanup 541 5422019-09-11 543 - 2.2.0 544 - [FEATURE] Server code is included in the library 545 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 546 5472019-05-13 548 - 1.21.2 549 - [OPTIMIZATION] HPACK: use history to improve compression performance 550 5512019-05-06 552 - 1.21.1 553 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 554 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 555 search static and dynamic tables. 556 5572019-04-12 558 - 1.21.0 559 - [FEATURE] Add qlog log module. 560 5612019-04-01 562 - 1.20.0 563 - [FEATURE] Add support for Q046. 564 5652019-03-19 566 - 1.19.6 567 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 568 send. ACK frames placed in packets in buffered queues (optimization 569 introduced in 1.17.15) can be preceded by an ACK frame generated later. 570 In this case, the older ACK frame should not be sent out, as Chromium- 571 based servers flags decrease in the ACK frame's Largest Observed value 572 as an error. 573 5742019-03-05 575 - 1.19.5 576 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 577 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 578 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 579 5802019-02-25 581 - 1.19.4 582 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 583 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 584 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 585 5862019-02-18 587 - 1.19.3 588 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 589 packet number encoding does not exist in Q044. This fixes a 590 regression introduced in '[BUGFIX] Buffered packets can contain 591 ACK frames' -- we need to keep QUIC version in mind when selecting 592 the longest possible packet number encoding used for the buffered 593 packet that carries the ACK. 594 - [BUGFIX] Do not increase CWND when timeout occurs. 595 - http_client: support setting handshake timeout on command line. 596 Use -o handshake_to=timeout. 597 - http_client: use -k to connect UDP socket to pick up ICMP errors. 598 - http_client: allow pathless mode, when only handshake is performed 599 without issuing any requests. This can be done by simply not 600 specifying a -p flag on the command line. 601 6022019-02-11 603 - 1.19.2 604 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 605 - [BUGFIX] Version checking in zero_rtt deserialize function. 606 6072019-02-04 608 - 1.19.1 609 - [BUGFIX] Fix Windows build. 610 6112019-02-04 612 - 1.19.0 613 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 614 information; it can be supplied to a subsequent connect() call. 615 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 616 - [BUGFIX] Resuscitate the Windows build. 617 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 618 - [BUGFIX] Buffered packets can contain ACK frames. 619 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 620 - [BUGFIX] Fix potential null dereference when realloc fails. 621 - cmake: simplify build configuration. 622 6232019-01-28 624 - 1.18.0 625 - [API Change] Can specify clock granularity in engine settings. 626 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 627 2018-04-09, it is not necessary to try to approximate the next tick 628 time in the pacer: it can use fix clock granularity specified by 629 the user. 630 - [BUGFIX] Do not tick constantly before handshake is done. 631 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 632 if we cannot allocate *more* packets, we could still be able to write 633 to one already allocated. 634 - [BUGFIX] Do not schedule pacer if there are no lost packets. 635 6362019-01-17 637 - 1.17.15 638 - [BUGFIX] http_client: make sure only one read per on_read() callback 639 is performed in the header conversion bypass (-B) mode. 640 - http_client: with -E, assign random priority when stream is created. 641 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 642 buffered packet if an ACK is queued. This reduces the number of 643 standalone ACK packets. 644 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 645 stream into an outgoing packet. This change minimizes the number of 646 buffered packets required to store several small HTTP messages by 647 virtue of allowing more than one STREAM frame from HEADERS stream in 648 the same packet. 649 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 650 causes the headers to be written to the same buffered packet queue, 651 thereby improving packet utilization, especially for small HTTP 652 messages. 653 6542019-01-16 655 - 1.17.14 656 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 657 time to download, requests per seconds, and bandwidth. See -t flag. 658 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 659 - [BUGFIX] http_client: do not display cert chain before each request. 660 Now this is only done once per connection, if the handshake is 661 successful and -a option is given. 662 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 663 stream is scheduled to be closed after on_read() callback returns, 664 close it immediately instead of waiting until the end of the tick. 665 If client creates new request from on_close() event, they will be 666 processed in the same tick instead of waiting for the next one. 667 - [BUGFIX] HEADERS stream is critical: always treat it with highest 668 priority. 669 6702019-01-10 671 - 1.17.12 672 - [FEATURE] http_client can now issue parallel requests in the context 673 of a single connection. See -w option. 674 6752019-01-03 676 - 1.17.11 677 - Fix strict aliasing warning in optimized compilation. 678 6792018-12-27 680 - 1.17.10 681 - Fix the example program to be able to use parallel connections 682 again. (See the -n argument.) 683 6842018-12-18 685 - 1.17.9 686 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 687 6882018-12-10 689 - 1.17.8 690 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 691 6922018-12-03 693 - 1.17.7 694 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 695 This prevented PING from ever being sent. 696 6972018-11-29 698 - 1.17.6 699 - Add failsafe: resume sending packets after some time 700 701 The change puts a 1-second limit on the amount of time the engine 702 will not send packets after some packets are delayed. This makes 703 the library robust in case the user does not unblock the engine 704 explicitly using lsquic_engine_send_unsent_packets() call. 705 706 - [BUGFIX] Handle corner cases in send controller when packets are 707 a) delayed or b) dropped during repackaging. 708 - [BUGFIX] Memory leak: destroy buffered packets during controller 709 cleanup. 710 7112018-11-16 712 - 1.17.3 713 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 714 7152018-10-19 716 - 1.17.2 717 - [BUGFIX] Memory leak in test_frame_rw unit test. 718 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 719 flags. (Only a problem in unit tests -- benign otherwise.) 720 7212018-10-16 722 - 1.17.0 723 - [API Change] Packet out Memory Interface (PMI) update: 724 - Split PMI pool return into pmi_release and pmi_return 725 - PMI callbacks take peer_ctx and is_ipv6 arguments 726 - [BUGFIX] Fix use-after-free when certificate is updated 727 - Silence gcc warning in optimized mode by performing useless 728 initialization 729 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 730 DEVEL_MODE 731 7322018-10-03 733 - 1.16.0 734 - [API Change] Add lsquic_conn_n_avail_streams() 735 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 736 7372018-09-27 738 - 1.15.0 739 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 740 - [BUGFIX] free uncompressed headers correctly when error occurs 741 7422018-09-12 743 - 1.14.3 744 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 745 - [BUGFIX] Drop packets that would become empty due to repackaging. 746 Packets on the scheduled queue may be marked for repackaging. 747 Frames such as ACK frame that are never resent are removed from 748 repackaged packets. We must check that the newly repackaged packet 749 would not be empty. If it would be, it is destroyed instead and 750 the next packet on the scheduled queue is used. Note that this 751 change only affects the logic to return the next packet to be sent. 752 Lost packets that are being rescheduled are already processed in 753 this fashion. 754 - Byteswap CID before logging it - this makes it match Chrome CIDs. 755 (Except Q035, which is the last little-endian GQUIC version we 756 support.) 757 7582018-09-06 759 - 1.14.0 760 - [API Change] Disable packet sending if full batch cannot be sent 761 If lsquic_packets_out_f() cannot send the whole batch, disable 762 packet sending until lsquic_engine_send_unsent_packets() is called. 763 - [BUGFIX] Handle case when STREAM frame does not fit. 764 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 765 may send overlapping STREAM frames even if using versions older 766 than Q043. 767 - Custom header set fixes: 768 - set "FIN reached" flag when custom header with FIN flag is 769 claimed; 770 - do not return custom header set for a reset stream. 771 7722018-08-27 773 774 - 1.13.0 775 - [FEATURE, API Change] Add ability to create custom header set 776 objects via callbacks. This avoids reading and re-parsing 777 headers from the stream. 778 7792018-08-27 780 781 - 1.12.4 782 - Fix memory leak when engine is destroyed 783 - Fix memory leak in http_client 784 - Fix gcc warning in unit tests 785 7862018-08-22 787 788 - 1.12.3 789 - [BUGFIX] Fix duplicate STREAM frame detection 790 7912018-08-20 792 793 - 1.12.2 794 - [BUGFIX] Update count of scheduled bytes when adjusting size of 795 an already-scheduled packet. 796 - Emit info instead of warning messages when stream is used in 797 unexpected ways. 798 7992018-08-17 800 801 - 1.12.0 802 - [FEATURE, API Change] Add support for certificate verification 803 8042018-08-16 805 806 - 1.11.1 807 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 808 8092018-08-15 810 811 - 1.11.0 812 - [FEATURE] Add support for Q044. 813 8142018-08-09 815 816 - 1.10.2 817 - [BUGFIX] Don't go over limit when creating delayed streams 818 8192018-07-10 820 821 - 1.10.1 822 - [BUGFIX] process connections after each batch of packets is read 823 This avoids a problem of accumulating a very large list of packets 824 (possible when speeds are high and socket's receive buffer is large) 825 and processing it all at once. 826 - If glibc is older than 2.17, link with rt. This is necessary for 827 clock_getres(2). 828 - Add version macros to lsquic.h; remove unnecessary includes. 829 8302018-06-13 831 832 - [BUGFIX] allow multiple parallel connections by default 833 834 Use the original method of tracking connections by CIDs by default. 835 If zero-sized CID support is turned on, connections are tracked by 836 the address. A new connection is not created if another connection 837 is using the same network address 838 8392018-05-30 840 841 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 842 8432018-05-24 844 845 - Close connection properly when packet encryption fails 846 8472018-05-23 848 849 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 850 8512018-05-21 852 853 - [API Change] Add optional callback to call when handshake is done 854 - [API Change, BUGFIX] After send failure, wait until transport available 855 8562018-05-18 857 858 - [API] Expose useful lsquic_ver2str[] in lsquic.h 859 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 860 - Improve checks of number of incoming streams limit and associated 861 error reporting. 862 - [BUGFIX] Command-line option `-6` now works correctly. 863 8642018-05-16 865 866 - [FEATURE] DNS resolution 867 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 868 - http_client: fix priority range generated by -E flag 869 8702018-05-09 871 872 - [FEATURE] Add support for Q043. 873 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 874 - Fix typo in debug message. 875 - Fix code indentation. 876 - Add /* fallthru */ comment to stop newer gcc from complaining. 877 - Logger: fix compilation of optimized Windows build. 878 8792018-05-04 880 881 - [FEATURE] Add support for Q042. 882 - Remove comment: MSPC is obsolete (no code changes) 883 - Prog: use lsquic_str2ver() when processing -o version flag 884 - Remove unused CTIM and SRBF transport parameters 885 - Disable QUIC versions Q037 and Q038 by default 886 - Fix Windows compilation by including compat header file in 887 lshpack.c 888 - Address warnings produced by newer versions of gcc 889 - Future-proof: turn off -Werror 890 8912018-05-02 892 893 - [BUGFIX] Make lsquic_conn_quic_version() available 894 - Switch to using ls-hpack 1.1 895 - [BUGFIX] Do not ignore stream resets after receiving FIN 896 8972018-04-27 898 899 - HPACK: do not allow header block to end with table size update. 900 9012018-04-25 902 903 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 904 packets. 905 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 906 - [BUGFIX] connections with blocked scheduled packets are not tickable 907 for sending. 908 - [BUGFIX] Conn is tickable if it wants to send a connection-level 909 frame. 910 9112018-04-23 912 913 - Fix busy loop: tickable must make progress. When connection is 914 self-reporting as tickable, it must make progress when ticked. There 915 are two issues: 916 1. If there are buffered packets, the connection is only tickable if 917 they can be sent out. 918 2. A connection is tickable if there are streams on the servicing 919 queue. When the tick occurs, we must service the stream 920 independent of whether any packets are sent. 921 - Fix assertion in pacer which can be incorrect under some 922 conditions. 923 - cmake: do not turn on address sanitizer if in Travis. 924 9252018-04-20 926 927 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 928 changes. 929 9302018-04-19 931 932 - [BUGFIX] Add connection to Tickable Queue on stream write 933 - cmake: use MSVC variable instead of trying to detect 934 - engine: improve connection incref/decref logging 935 - stream: don't ignore errors that may occur on triggered flush 936 - connection: remove obsolete method 937 - engine: indicate connection as tickable if previous call went 938 over threshold 939 9402018-04-09 941 942 [API Change, OPTIMIZATION] Only process conns that need to be processed 943 944 The API is simplified: do not expose the user code to several 945 queues. A "connection queue" is now an internal concept. 946 The user processes connections using the single function 947 lsquic_engine_process_conns(). When this function is called, 948 only those connections are processed that need to be processed. 949 A connection needs to be processed when: 950 951 1. New incoming packets have been fed to the connection. 952 2. User wants to read from a stream that is readable. 953 3. User wants to write to a stream that is writeable. 954 4. There are buffered packets that can be sent out. (This 955 means that the user wrote to a stream outside of the 956 lsquic library callback.) 957 5. A control frame (such as BLOCKED) needs to be sent out. 958 6. A stream needs to be serviced or delayed stream needs to 959 be created. 960 7. An alarm rings. 961 8. Pacer timer expires. 962 963 To achieve this, the library places the connections into two 964 priority queues (min heaps): 965 966 1. Tickable Queue; and 967 2. Advisory Tick Time queue (ATTQ). 968 969 Each time lsquic_engine_process_conns() is called, the Tickable 970 Queue is emptied. After the connections have been ticked, they are 971 queried again: if a connection is not being closed, it is placed 972 either in the Tickable Queue if it is ready to be ticked again or 973 it is placed in the Advisory Tick Time Queue. It is assumed that 974 a connection always has at least one timer set (the idle alarm). 975 976 The connections in the Tickable Queue are arranged in the least 977 recently ticked order. This lets connections that have been quiet 978 longer to get their packets scheduled first. 979 980 This change means that the library no longer needs to be ticked 981 periodically. The user code can query the library when is the 982 next tick event and schedule it exactly. When connections are 983 processed, only the tickable connections are processed, not *all* 984 the connections. When there are no tick events, it means that no 985 timer event is necessary -- only the file descriptor READ event 986 is active. 987 988 The following are improvements and simplifications that have 989 been triggered: 990 991 - Queue of connections with incoming packets is gone. 992 - "Pending Read/Write Events" Queue is gone (along with its 993 history and progress checks). This queue has become the 994 Tickable Queue. 995 - The connection hash no longer needs to track the connection 996 insertion order. 997 9982018-04-02 999 1000 - [FEATURE] Windows support 1001 1002 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 1003 10042018-03-09 1005 1006 - [OPTIMIZATION] Merge series of ACKs if possible 1007 1008 Parsed single-range ACK frames (that is the majority of frames) are 1009 saved in the connection and their processing is deferred until the 1010 connection is ticked. If several ACKs come in a series between 1011 adjacent ticks, we check whether the latest ACK is a strict superset 1012 of the saved ACK. If it is, the older ACK is not processed. 1013 1014 If ACK frames can be merged, they are merged and only one of them is 1015 either processed or saved. 1016 1017 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 1018 1019 Never generate a gap in the sent packet number sequence. This reduces 1020 the send history to a single number instead of potentially a series of 1021 packet ranges and thereby speeds up ACK verification. 1022 1023 By default, detecting a gap in the send history is not fatal: only a 1024 single warning is generated per connection. The connection can continue 1025 to operate even if the ACK verification code is not able to detect some 1026 inconsistencies. 1027 1028 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 1029 1030 The first part of struct lsquic_send_ctl now consists of members that 1031 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 1032 which is the normal case). To speed up reads and writes, we no longer 1033 try to save space by using 8- and 16-bit integers. Use regular integer 1034 width for everything. 1035 1036 - [OPTIMIZATION] Cache size of sent packet. 1037 1038 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 1039 1040 Instead of parsing our own ACK frames when packet has been acked, 1041 use the value saved in the packet_out structure when the ACK frame 1042 was generated. 1043 1044 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 1045 1046 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 1047 1048 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 1049 1050 - Fix: http_client: fix -I flag; switch assert() to abort() 1051 10522018-02-26 1053 - [API Change] lsquic_engine_connect() returns pointer to the connection 1054 object. 1055 - [API Change] Add lsquic_conn_get_engine() to get engine object from 1056 connection object. 1057 - [API Change] Add lsquic_conn_status() to query connection status. 1058 - [API Change] Add add lsquic_conn_set_ctx(). 1059 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 1060 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 1061 arrives. 1062 - [OPTIMIZATION] Do not compile expensive send controller sanity check 1063 by default. 1064 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 1065 - [OPTIMIZATION] Only make squeeze function call if necessary. 1066 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 1067 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 1068 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 1069 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 1070 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 1071 ordered. 1072 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 1073 - Fix: reset incoming streams that arrive after we send GOAWAY. 1074 - Fix: delay client on_new_conn() call until connection is fully set up. 1075 - Fixes to buffered packets logic: splitting, STREAM frame elision. 1076 - Fix: do not dispatch on_write callback if no packets are available. 1077 - Fix WINDOW_UPDATE send and resend logic. 1078 - Fix STREAM frame extension code. 1079 - Fix: Drop unflushed data when stream is reset. 1080 - Switch to tracking CWND using bytes rather than packets. 1081 - Fix TCP friendly adjustment in cubic. 1082 - Fix: do not generate invalid STOP_WAITING frames during high packet 1083 loss. 1084 - Pacer fixes. 1085 10862017-12-18 1087 1088 - Fix: better follow cubic curve after idle period 1089 - Fix: add missing parts to outgoing packet splitting code 1090 - Fix: compilation using gcc 4.8.4 1091 10922017-10-31 1093 1094 - Add APIs.txt -- describes LSQUIC APIs 1095 10962017-10-31 1097 1098 - [API Change] Sendfile-like functionality is gone. The stream no 1099 longer opens files and deals with file descriptors. (Among other 1100 things, this makes the code more portable.) Three writing functions 1101 are provided: 1102 1103 lsquic_stream_write 1104 lsquic_stream_writev 1105 lsquic_stream_writef (NEW) 1106 1107 lsquic_stream_writef() is given an abstract reader that has function 1108 pointers for size() and read() functions which the user can implement. 1109 This is the most flexible way. lsquic_stream_write() and 1110 lsquic_stream_writev() are now both implemented as wrappers around 1111 lsquic_stream_writef(). 1112 1113 - [OPTIMIZATION] When writing to stream, be it within or without the 1114 on_write() callback, place data directly into packet buffer, 1115 bypassing auxiliary data structures. This reduces amount of memory 1116 required, for the amount of data that can be written is limited 1117 by the congestion window. 1118 1119 To support writes outside the on_write() callback, we keep N 1120 outgoing packet buffers per connection which can be written to 1121 by any stream. One half of these are reserved for the highest 1122 priority stream(s), the other half for all other streams. This way, 1123 low-priority streams cannot write instead of high-priority streams 1124 and, on the other hand, low-priority streams get a chance to send 1125 their packets out. 1126 1127 The algorithm is as follows: 1128 1129 - When user writes to stream outside of the callback: 1130 - If this is the highest priority stream, place it onto the 1131 reserved N/2 queue or fail. 1132 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 1133 rather than N/2, allowing high-priority streams to write as 1134 much as can be sent.) 1135 - If the stream is not the highest priority, try to place the 1136 data onto the reserved N/2 queue or fail. 1137 - When tick occurs *and* more packets can be scheduled: 1138 - Transfer packets from the high N/2 queue to the scheduled 1139 queue. 1140 - If more scheduling is allowed: 1141 - Call on_write callbacks for highest-priority streams, 1142 placing resulting packets directly onto the scheduled queue. 1143 - If more scheduling is allowed: 1144 - Transfer packets from the low N/2 queue to the scheduled 1145 queue. 1146 - If more scheduling is allowed: 1147 - Call on_write callbacks for non-highest-priority streams, 1148 placing resulting packets directly onto the scheduled queue 1149 1150 The number N is currently 20, but it could be varied based on 1151 resource usage. 1152 1153 - If stream is created due to incoming headers, make headers readable 1154 from on_new. 1155 1156 - Outgoing packets are no longer marked non-writeable to prevent placing 1157 more than one STREAM frame from the same stream into a single packet. 1158 This property is maintained via code flow and an explicit check. 1159 Packets for stream data are allocated using a special function. 1160 1161 - STREAM frame elision is cheaper, as we only perform it if a reset 1162 stream has outgoing packets referencing it. 1163 1164 - lsquic_packet_out_t is smaller, as stream_rec elements are now 1165 inside a union. 1166 11672017-10-12 1168 1169 - Do not send RST_STREAM when stream is closed for reading 1170 - Raise maximum header size from 4K to 64K 1171 - Check header name and value lengths against maximum imposed by HPACK 1172 - Fix NULL dereference in stream flow controller 1173 11742017-10-09 1175 1176 - Hide handshake implementation behind a set of function pointers 1177 - Use monotonically increasing clock 1178 - Make sure that retx delay is not larger than the max of 60 seconds 1179 11802017-09-29 1181 1182 - A few fixes to code and README 1183 11842017-09-28 1185 1186 - Add support for Q041; drop support for Q040 1187 11882017-09-27 1189 1190 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 1191 11922017-09-26 1193 1194 - Add support for Mac OS 1195 - Add support for Raspberry Pi 1196 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 1197 11982017-09-22 1199 1200 - Initial release 1201