CHANGELOG revision e2c49070
12021-01-08 2 - 2.27.3 3 - [BUGFIX] gQUIC: do not destroy critical streams when connection is 4 closed. See issue #201. 5 - [BUGFIX] Drop #if LSQUIC_CONN_STATS from lsquic.h. See issue #211. 6 - [BUGFIX] Challenge cancellation when path validation fails. 7 - [BUGFIX] Do not send FIN if RST is scheduled to be sent on a stream. 8 - [BUGFIX] gQUIC's is_tickable() when connection is closing. 9 - [BUGFIX] Q050 processing of GOAWAY frames. 10 112021-01-06 12 - 2.27.2 13 - [BUGFIX] Memory corruption in receive history copy-ranges function. 14 152021-01-06 16 - 2.27.1 17 - [API] New knob to set outgoing packet batch size. 18 - Aborted connection now become tickable immediately. 19 - Abort connection when HTTP/3 frame cannot be opened (can only happen 20 when malloc fails). 21 222020-12-31 23 - 2.27.0 24 - [API] Remove keylog callbacks. See issue #188. 25 - Add a bit more ALPN logging. 26 272020-12-23 28 - 2.26.2 29 - [BUGFIX] Do not drop incoming data when STOP_SENDING is received. 30 - [BUGFIX] Receipt of STOP_SENDING should not cause read-reset. 31 - [BUGFIX] Allow stream writes after receiving RESET. 32 - [BUGFIX] Typo in stream: ANDing enum with wrong flag. 33 - [BUGFIX] Reset elision: do not use zero as special stream ID value, 34 for zero is a valid stream ID in IETF QUIC. 35 - [API] Add optional on_conncloseframe_received() callback. 36 - Use zero error code in RESET stream sent in response to STOP_SENDING. 37 382020-12-17 39 - 2.26.1 40 - [BUGFIX] Migration corner cases: drop or pad over path challenge 41 and response frames when necessary. 42 - Fix stream unit test. 43 442020-12-09 45 - 2.26.0 46 - [OPTIMIZATION] Adjust packet reordering threshold when spurious losses 47 are detected. 48 - [API] Pass pointer to local sockaddr to ea_get_ssl_ctx() callback. 49 502020-12-04 51 - 2.25.0 52 - [API, FEATURE] Add es_delay_onclose option to delay on_close until all 53 data is ACKed. Use new function lsquic_stream_has_unacked_data() to 54 learn whether peer acknowledged all data written to stream. 55 - [API] Add optional on_reset() stream callback to get notifications 56 when RESET or STOP_SENDING frames are received. 57 - [BUGFIX] On STOP_SENDING, make conn tickable is _writeable_, not 58 readable. 59 602020-11-24 61 - 2.24.5 62 - [FEATURE] Improve Delayed ACKs extension and turn it on by default. 63 - Limit receive history to a finite amount of memory. 64 652020-11-18 66 - 2.24.4 67 - [BUGFIX] Check whether ECN counts are set in ACK struct before using 68 them. 69 - [BUGFIX] Calculate TLP timer correctly when only one packet is in 70 flight. 71 - [BUGFIX] Min RTO delay is 200 milliseconds, not 1 second. 72 - [BUGFIX] Memory leak in QPACK decoder handler: discard hset when 73 necessary. 74 - Allow retired and drained CIDs to be reused after a timeout. 75 762020-11-11 77 - 2.24.3 78 - [BUGFIX] Get rough RTT estimate on receipt of Handshake packet. 79 This prevents BBR on the client from miscalculating pacing rate, 80 slowing down sending of ACK packets. 81 - [BUGFIX] Packets sent during handshake are app-limited. 82 - [BUGFIX] Bandwidth sampler starts in app-limited mode. 83 - [BUGFIX] Memory leak: free QPACK handler context in stream dtor. 84 - Logging improvements. 85 862020-11-05 87 - 2.24.2 88 - [BUGFIX] Allow peer to migrate when its SCID is zero-length. 89 - [BUGFIX] PADDING size calculation: only one Short packet can be 90 coalesced. (This should have been part of the fix in 2.24.1). 91 - Abort connect if received NEW_CONNECTION_ID but current DCID is 92 zero-length. 93 - Improve log messages 94 952020-11-04 96 - 2.24.1 97 - [API] Allow use of ea_get_ssl_ctx() on the client (optional). PR #186. 98 - [BUGFIX] Expand datagram with ack-eliciting Initial to 1200 bytes 99 after connection promotion. 100 - [BUGFIX] Discard CRYPTO frames from lower encryption levels after 101 connection promotion. 102 - [BUGFIX] Cancel path response if path could not be initialized. 103 1042020-10-28 105 - 2.24.0 106 - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support. Drop ID-30 107 and ID-31 support. 108 - [BUGFIX] Divide-by-zero in newly enabled conn stats code when no 109 packets were sent. 110 - [BUGFIX] Memory leak in gQUIC client when server hello cannot be 111 parsed. 112 - [BUGFIX] Server Initial packet size calculation. 113 - Log user-agent and CONN_CLOSE reason when peer reports error. 114 - Example programs: Specify ALPN for echo and md5 clients and servers 115 (issue #184). 116 - Example programs: Don't add "QUIC_" prefix to lines in keylog file 117 (issue #185). 118 - http_server: Fix fd leak in preadv mode; fix preadv() usage when 119 reading from disk. 120 1212020-10-22 122 - 2.23.3 123 - [BUGFIX] Update packetization threshold when writing to stream 124 after packet size is reduced following an RTO. 125 1262020-10-21 127 - 2.23.2 128 - Add QPACK stats collection and experimentation mode, see the new 129 es_qpack_experiment setting. 130 - Log busy connection stats every second using the new "conn-stats" 131 log module. 132 - Log about skipping only once. 133 - Update HTTP/3 greased frame type formula. 134 - Use ls-qpack v2.2.1. 135 1362020-10-13 137 - 2.23.1 138 - [FEATURE] IETF Client 0-RTT support. 139 - [BUGFIX] Do not schedule MTU probe on first tick. 140 - [BUGFIX] Parsing DATAGRAM frame. 141 - [BUGFIX] If push promise fails, do not invoke hset destructor. 142 - [BUGFIX] Client: When connections are IDed by port number, check DCID. 143 Fixes issue #176. 144 - [BUGFIX] Regression introduced in 2.22.0: use correct number of 145 PNSs for IETF mini conn during promotion. 146 - Revert the 2.22.1 lsquic_is_valid_hs_packet change. All that was 147 necessary is a change to the way we call it in lsquic_engine. No 148 change to the function itself is required. 149 1502020-10-08 151 - 2.22.1 152 - [BUGFIX] Function that checks validity of handshake packets. 153 1542020-10-07 155 - 2.22.0 156 - [FEATURE] Extensible HTTP Priorities (HTTP/3 only). 157 - [FEATURE] Add conn context to packet-out memory interface (PR #175). 158 - [BUGFIX] gQUIC proof generation: allocate buffer big enough for 159 signature (issue #173). 160 - [BUGFIX] Make library thread-safe: drop use of global variables 161 (issue #133, issue #167). 162 - [BUGFIX] Deactivate only *recent* HQ frame, not any HQ frame. 163 - [BUGFIX] gQUIC server: associate compressed cert with SSL_CTX, 164 instead of keeping them in a separate hash, potentially leading 165 to mismatches. 166 - [BUGFIX] Stream data discard infinite loop: break on FIN. 167 - cmake: add install target via -DCMAKE_INSTALL_PREFIX (PR #171). 168 - Support randomized packet number to begin a connection. 169 - Mini and full IETF connection size optimization. 170 - http_client: specify HTTP priorities based on stream conditions. 171 1722020-09-29 173 - 2.21.0 174 - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support. 175 - [API] Let user generate Souce Connection IDs. 176 - [FEATURE] Allow building lsquic as shared library. 177 - [OPTIMIZATION] Receive history: use a single contiguous memory 178 block for everything. 179 - Deprecate QUIC versions ID-27 and ID-30. 180 1812020-09-25 182 - 2.20.2 183 - [BUGFIX] Memory leak: free pushed promise when refcnt is zero. 184 - [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets. 185 1862020-09-23 187 - 2.20.1 188 - [BUGFIX] Typo in new "validate peer addr by DCID" code. It is 189 a benign bug (works either way), but better to fix it. 190 - Simplify Stream Priority Iterator (SPI). 191 - Minor documentation updates. 192 1932020-09-15 194 - 2.20.0 195 - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support. 196 - [FEATURE] Unreliable Datagram Extension support. 197 - [FEATURE] Adaptive congestion controller. 198 - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams. 199 - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO 200 data comes in. 201 - [BUGFIX] Spin bit is now strictly per path; value is reset on 202 DCID change. 203 - [BUGFIX] Check that max value of max_streams_uni and 204 max_streams_bidi TPs is 2^60. 205 - [BUGFIX] Close IETF mini conn immediately if crypto session 206 cannot be initialized. 207 - Deprecate ID-28 (no browser uses it): it's no longer in the 208 default versions list. 209 - New programs duck_server and duck_client that implement the 210 experimental siduck-00 protocol. They quack! 211 - IETF crypto streams: don't limit ourselves from sending. 212 - Command-line programs: turn off QL loss bits if -G is used, as 213 Wireshark cannot decrypt QUIC packets when this extension is used. 214 - Turn all h3 framing unit tests back on. 215 - Fix malo initialization when compiled in no-pool mode. 216 2172020-09-08 218 - 2.19.10 219 - [FEATURE] Add lsquic_stream_pwritev(). This function allows one to 220 reduce the number of system calls required to read a file from disk 221 by using lsquic_stream_pwritev() together with preadv(2). 222 - [BUGFIX] When stream is reset, it is writeable -- let user collect 223 the error. 224 - [BUGFIX] Calculate correct conn flow control if reading ends early. 225 - [BUGFIX] Remove stream from read and write queues on internal 226 shutdown. This is a regression introduced in 2.19.7. 227 - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation. 228 - Turn off mini conn history when compiling with Visual Studio; this 229 allows the project to compile on Windows again. 230 - http_client: Add -3 flag to stop reading from streams early; code 231 cleanup. 232 - Don't use -Werror. 233 2342020-09-02 235 - 2.19.8 236 - [FEATURE] Update the timestamp extension to latest version. 237 - [FEATURE] Cope with appearance of ECN blackholes. 238 - [OPTIMIZATION] return packno offset and size when header is generated. 239 - [BUGFIX] ignore old ACK frames in mini conns. 240 - [BUGFIX] Mark initial server path as initialized. 241 - [BUGFIX] Do not merge ACK if ECN counts do not match. 242 - Turn incoming packet number history in mini conn back on. 243 - Record mini conn event history again when compiled in debug mode. 244 - IETF mini conn: log when ACK is queued. 245 - Clean up and refactor code in several places. 246 2472020-08-26 248 - 2.19.7 249 - Handle ECT-CE event: issue a loss event. 250 - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE. 251 - Use Max Push ID in GOAWAY frame to cancel promises. 252 - Add support for HTTP/3 CANCEL_PUSH frame. 253 - lsquic_stream_is_pushed: streams without headers are never pushed. 254 - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down. 255 - Improve logic whether to generate CONNECTION_CLOSE. 256 2572020-08-20 258 - 2.19.6 259 - Don't process incoming ECN marks if ECN is not enabled. 260 - Schedule ACK when incoming packet is marked with CE. 261 2622020-08-11 263 - 2.19.5 264 - [BUGFIX] Generate frame record when moving an ACK from one buffered 265 packet to another. 266 2672020-08-06 268 - 2.19.4 269 - [BUGFIX] Do not return an oversize MTU probe to connection twice. 270 - [FEATURE] Delayed Acks updated to latest draft. Still experimental. 271 - Minor code cleanup in IETF full connection. 272 2732020-08-04 274 - 2.19.3 275 - [BUGFIX] Regression in 2.19.1 that breaks Q050 276 2772020-07-30 278 - 2.19.2 279 - [BUGFIX] Do not reduce PLPMTU size by network overhead. 280 - [BUGFIX] Windows build. 281 2822020-07-29 283 - 2.19.1 284 - [FEATURE] DPLPMTUD support. IETF connections now search for the 285 maximum packet size, improving throughput. 286 - [DEBUG] Record event in stream history when on_close() is called 287 in dtor. 288 2892020-07-22 290 - 2.18.2 291 - [BUGFIX] Send prediction: lone path challenges do not get squeezed out 292 - Fix crash in http_client: now -K and -B can be used simultaneously 293 2942020-07-14 295 - 2.18.1 296 - [FEATURE] Implement the "QUIC bit grease" extension. 297 - [BUGFIX] Selecting CID used for logging on client. 298 - [BUGFIX] Header protection assertion. 299 - [BUGFIX] Server: enable SSL key logging when cert lookup callback 300 is not set. 301 - Remove some dead code. 302 3032020-07-06 304 - 2.18.0 305 - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT" 306 always refers to early data, meaning a request that the server can 307 reply to in the very first return flight. A more appropriate name 308 for what we support on the client site is "session resumption," which 309 is standard TLS terminology. Later, when we add support for 0-RTT 310 (early data), we can use the 0-RTT terminology again, this time in 311 proper context. 312 - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL. 313 - [BUGFIX] Make connection tickable when it's marked as closed. 314 - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode. 315 - Several documentation fixes and improvements. 316 - Minor code cleanup. 317 3182020-06-24 319 - 2.17.2 320 - [BUGFIX] Infinite loop in stream: advance read offset when discarding 321 data. 322 - [OPTIMIZATION] Header protection: only initialize cipher once. 323 - [OPTIMIZATION] Batch header protection application. 324 3252020-06-18 326 - 2.17.1 327 - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support. 328 - [BUGFIX] Check that scheduled packets are also sendable when 329 calculating a connection's "tickable" property. 330 - [BUGFIX] Don't count scheduled packets as in-flight when pacer is 331 checked on tick. 332 - gQUIC: delay calling on_new for pushed stream until headers are 333 available. 334 - Allow nested calls to lsquic_engine_connect(). 335 3362020-06-15 337 - 2.16.3 338 - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn 339 instead of dropping them. 340 - [BUGFIX] Crash: check decrypt context before using it. This regression 341 was introduced in 2.16.2. 342 3432020-06-12 344 - 2.16.2 345 - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in 346 ClientHello. This change requires using a newer version of BoringSSL. 347 - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor. 348 - [BUGFIX] IETF QUIC client: narrow migration check to a single path. 349 - [BUGFIX] NULL dereference: set function pointers for alarm for path 350 challenges 2 and 3. 351 - [BUGFIX] HTTP/3 headers may be followed immediately by trailers. 352 - [BUGFIX] Log messages when SCID changes. 353 3542020-06-09 355 - 2.16.1 356 - [FEATURE] Use "no-progress timeout" after which connection is closed. 357 - [BUGFIX] Select new SCID when current SCID is retired. 358 - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during 359 mini/full handoff. 360 - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated. 361 - [BUGFIX] Mini conn: consider amplification when deciding to return 362 TICK_SEND. 363 - [BUGFIX] Don't double-count tag length in amplification logic. 364 - [BUGFIX] Don't squeeze out lone path challenges. 365 - [BUGFIX] Log messages dealing with scheduled packet queue squeezing. 366 - [BUGFIX] don't wipe current path if no path challenge responses 367 come back. 368 - [BUGFIX] When path is reset, don't lose path_id which is used for 369 logging. 370 - Downgrade flow control violations to info log level from warnings. 371 - Fix connection cap extra check, avoid checks in nested calls. 372 - Fix some unit tests when extra checks are enabled. 373 - Use ls-hpack 2.2.1. 374 - Turn off unconditional extra checks for IETF clients. 375 - Extra checks: don't verify sent size of hello packets. Client 376 changes DCID length and this check will fail. 377 3782020-06-03 379 - 2.16.0 380 - [API] Use lsxpack_header v206. 381 - [FEATURE] Windows supported. 382 - [BUGFIX] Fix uninitialized variable use in client (regression in 383 2.15.0). 384 - Use ls-hpack 2.2.0. 385 - Use ls-qpack 2.2.0. 386 - Sample programs: fix the way maximum number of packets is 387 calculated. 388 - Remove some dead code. 389 3902020-05-27 391 - 2.15.0 392 - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support. 393 - [BUGFIX] Ignore Retry packets after other packets are decrypted 394 successfully. 395 - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte 396 length minimum. 397 - http_client: fix and optimize lsxpack_header allocator. 398 - Drop support for Internet Draft 25. 399 4002020-05-19 401 - 2.14.8 402 - Support Android. 403 - Rerrange tree: move command-line examples into bin/ and unit 404 tests into tests/ from test/unittests/. 405 4062020-05-12 407 - 2.14.7 408 - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050. 409 - [BUGFIX] Frame reader: skip headers if target stream is closed. 410 4112020-05-06 412 - 2.14.6 413 - [BUGFIX] Fix amplification mitigation in 0-RTT case. 414 - [BUGFIX] IETF mini connection should not tickable if cannot send 415 a packet due to amplification. 416 - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2. 417 - [BUGFIX] Qlog server certificates for IETF QUIC connections. 418 - [BUGFIX] Uninitialized struct padding usage in tokgen (benign). 419 - [BUGFIX] Incorrect argument to shi_lookup() (benign). 420 4212020-04-29 422 - 2.14.5 423 - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match. 424 - [BUGFIX] Frame reader: skip headers if target stream is not found. 425 - [BUGFIX] Log message in QPACK decoder handler. 426 4272020-04-24 428 - 2.14.4 429 - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams. 430 - [BUGFIX] IETF client: set correct flags on bidirectional streams. 431 - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned 432 streams. 433 - [BUGFIX] Do not call header callbacks after stream is closed. 434 - Use ls-qpack 2.1.1 435 4362020-04-15 437 - 2.14.3 438 - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback. 439 - [BUGFIX] Use ls-hpack 2.1.1 440 - Improve stream code readability. 441 - Use ls-qpack 2.0.5 442 4432020-04-08 444 - 2.14.2 445 - [BUGFIX] Use ls-qpack 2.0.4 446 - [BUGFIX] Honor max packet size on the client and when path changes. 447 - http_server: fix prepare_decode() function. 448 4492020-04-07 450 - 2.14.1 451 - [BUGFIX] Place connections on tickable queue when sending is reenabled. 452 - [BUGFIX] A connection is tickable if it has unsent packets. 453 - [BUGFIX] Heed peer's max_packet_size transport parameter. 454 4552020-03-30 456 - 2.14.0 457 - [API] Use lsxpack_header structure to send HTTP headers. 458 - [OPTIMIZATION] nocopy's readable_bytes() function. 459 - http_server: fix typo in error message 460 - Use ls-hpack 2.1.0. 461 - Use ls-qpack 2.0.0. 462 4632020-03-23 464 - 2.13.3 465 - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked. 466 4672020-03-13 468 - 2.13.2 469 - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode(). 470 4712020-03-12 472 - 2.13.1 473 - [API] Use lsxpack_header structure to process incoming headers. 474 - [BUGFIX] Fix assertion when zero-padding Initial packet. 475 - [BUGFIX] Use idle timeout before we learn of peer's value. 476 - Use ls-hpack 2.0.1 -- has lsxpack_header changes. 477 - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not 478 used yet). 479 - Code cleanup: prefix exported functions with "lsquic_". 480 4812020-03-02 482 - 2.12.0 483 - [FEATURE] QUIC timestamps extension. 484 - [API] New: ea_alpn that is used when not in HTTP mode. 485 - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC. 486 - [BUGFIX] Benign double-free -- issue #110. 487 - [BUGFIX] Printing of transport parameters. 488 4892020-02-24 490 - 2.11.1 491 - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support. 492 - [FEATURE] Add experimental delayed ACKs extension. 493 - Drop support for Internet Draft 24. 494 - Code cleanup. 495 4962020-02-14 497 - 2.10.6 498 - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error. 499 - [BUGFIX] Send gap warning due to missing poisoned packet. 500 - Stream unit test for scenario in issue #106. 501 5022020-02-13 503 - 2.10.5 504 - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct 505 time. 506 - Refactor transport parameters module. 507 - Minor code cleanup. 508 5092020-02-11 510 - 2.10.4 511 - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received. 512 - [BUGFIX] Don't treat garbage UDP padding as library error; ignore 513 it instead. 514 - [BUGFIX] Fix compilation on FreeBSD (missing header). 515 - Code cleanup: remove unnecessary #includes. 516 5172020-01-31 518 - 2.10.3 519 - [BUGFIX] Cancel path responses and challenges on old path when 520 switching to new path 521 - Logging network path information. 522 5232020-01-30 524 - 2.10.2 525 - [BUGFIX] Do not delay ACKs for Initial and Handshake packets. 526 - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn 527 promotion. 528 - Logging improvements. 529 - http_client: discard data faster. 530 5312020-01-29 532 - 2.10.1 533 - [BUGFIX] Coalesced packets could get longer than normal packet 534 size. 535 - Add spin bit configuration option es_spin (-o spin=[01]). 536 - Disable spin bit in 1/16 of connections. 537 - Improve logging a bit. 538 5392020-01-28 540 - 2.10.0 541 - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support. 542 - [API] Drop support for ID-23. 543 - [BUGFIX] Set key phase bit on outgoing packets correctly. 544 - Code cleanup. 545 5462020-01-20 547 - 2.9.0 548 - [API] Drop support for Q039. 549 - Improve ACK-queuing logic. Send an ACK once in a while if 550 peer keeps on sending non-ack-eliciting packets. 551 - Improve Alt-Svc string: Q050 and later are not included in 552 the old-style "quic" string. 553 - Send stateless resets if connection could not be promoted. 554 - Schedule MAX_DATA if needed when DATA_BLOCKED is received. 555 - Use ls-qpack 0.11.2 -- needed for server push optimization. 556 - Code cleanup: handle some error cases, improve logging. 557 5582020-01-16 559 - 2.8.9 560 - [BUGFIX] Use ls-qpack 0.11.1 561 - [OPTIMIZATION] Generate random bytes in batches. 562 - Change loss_bits transport parameter ID to 0x1057 following 563 latest draft. 564 - Randomize period with which PINGs are sent to elicit ACKs. 565 - Some refactoring and code cleanup. 566 5672020-01-14 568 - 2.8.8 569 - [BUGFIX] Invalid read when parsing IETF transport parameters 570 (this was benign). 571 - [OPTIMIZATION] Frame bundling when using buffered packets in 572 IETF QUIC: a) flush QPACK decoder stream and b) include ACKs 573 in opportunistic fashion. 574 - Fix HTTP/3 framing unit test. 575 - Code cleanup. 576 5772020-01-09 578 - 2.8.7 579 - [BUGFIX] Initial packet size check for IETF mini conn applies to 580 UDP payload, not QUIC packet. 581 - Support old and new school loss_bits transport parameter. 582 - Use Q run length of 64 as suggested in the loss bits Draft. 583 - Undo square wave count when packet is delayed. 584 - Code cleanup; minor fixes. 585 5862020-01-06 587 - 2.8.5 588 - [HTTP3] Verify number of bytes in incoming DATA frames against 589 content-length. 590 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 591 decoder window. This addresses a potential attack whereby client 592 can cause the server to keep allocating memory. See Security 593 Considerations in the QPACK draft. 594 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 595 - [BUGFIX] Init IETF connection flow controller using correct setting. 596 - [BUGFIX] Fix unintended sign extension when removing header protection. 597 - Code cleanup and minor fixes. 598 5992019-12-30 600 - 2.8.1 601 - [FEATURE] Use occasional packet number gaps to detect optimistic 602 ACK attacks. 603 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 604 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 605 ACK frames. 606 - IETF QUIC: use RTT estimate in ack timeout calculation. 607 - IETF handshake: abort conn when unexpected errors occur. 608 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 609 - Server: enforce 1200 byte Initial minimum packet size. 610 - [CLEANUP] Remove code to disable gQUIC crypto. 611 - [CLEANUP] Remove n_timestamps from ACK info struct. 612 - Optimize driver: reuse previous ancillary message when possible. 613 6142019-12-23 615 - 2.8.0 616 - [FEATURE] Add support for Q050. 617 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 618 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 619 logging. 620 6212019-12-18 622 - 2.7.3 623 - [DEBUG] Further dedup next advisory tick messages when reason is 624 the same. 625 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 626 GitHub bug #94. 627 - Use Cubic by default again instead of BBR, as it delivers more 628 consistent performance. 629 6302019-12-11 631 - 2.7.2 632 - [BUGFIX] Send controller: update scheduled bytes when DCID length 633 changes (IETF client). 634 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 635 that we use loss chains. 636 - [PORTABILITY] Fix build on Alpine Linux. 637 - [PORTABILITY] Fix build using XCode. 638 - Client initial DCID length: use RAND_bytes() instead of rand(3). 639 - Add unit tests for connection min heap. 640 - [DEBUG] Log CID in gQUIC handshake module 641 - [DEBUG] Turn on extra checks for IETF client send controller. 642 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 643 - [DEBUG] QPACK decoder handler: log header error code. 644 6452019-12-05 646 - 2.7.1 647 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 648 ignore_init() makes an assumption that the send controller has access 649 to all outgoing packets. This change wraps a few IETF full connection 650 methods to delay calling ignore_init() until the engine returns all 651 outgoing packets that were batched. 652 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 653 This needs to be done because the value of errno may be lost on 654 some platforms. 655 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 656 - [BUGFIX] Do not cancel header block processing after failure, as 657 QPACK releases the reference in that case. 658 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 659 - Several small improvements to the test server. 660 6612019-11-27 662 - 2.7.0 663 - [API, FEATURE] Close connection immediately when ea_packets_out() 664 fails with errno != EAGAIN. The API change is that errno is now 665 examined. Make sure to set it if using something other than 666 sendmsg() to send packets. 667 - [CLEANUP] Immediate close logic in IETF full conn. 668 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 669 6702019-11-22 671 - 2.6.7 672 - [FEATURE] Implement the QL extension (offered by default). 673 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 674 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 675 - [DEBUG] Turn on debug message for next advisory tick. 676 6772019-11-20 678 - 2.6.6 679 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 680 - [BUGFIX] Truncate log messages instead of throwing them away. 681 6822019-11-15 683 - 2.6.5 684 - [BUGFIX] High priority buffered packet queue length. 685 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 686 6872019-11-12 688 - 2.6.3 689 - [BUGFIX] Close DATA frames with empty payload correctly. 690 6912019-11-11 692 - 2.6.2 693 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 694 packets. 695 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 696 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 697 connection. 698 - [BUGFIX] Client: don't send duplicate reset tokens. 699 - [BUGFIX] Remove invalid assertion in H3 framing code. 700 - Silence a warning in send ctl by restructuring switch() statement. 701 7022019-11-08 703 - 2.6.1 704 - [BUGFIX] set retry token on all resubmitted packets. 705 - Event log: log sent packet flags. In particular, this allows one 706 to see whether token was sent. 707 - Don't migrate client if es_allow_migration is false. 708 7092019-11-07 710 - 2.6.0 711 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 712 7132019-11-07 714 - 2.5.2 715 - [BUGFIX] argument order to gQUIC client constructor. Regression 716 introduced in 2.5.0. 717 - [BUGFIX] split buffered packet error recovery: destroy the correct 718 packet. 719 7202019-11-04 721 - 2.5.1 722 - [BUGFIX] Fix double-free when emptying a packet number space. 723 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 724 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 725 verneg packets (regression introduced in 2.5.0). 726 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 727 - [OPTIMIZATION] http_server: compile regexes only once. 728 7292019-10-31 730 - 2.5.0 731 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 732 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 733 - [BUGFIX] Don't evict streams from priority iterator if there is 734 only one queue. 735 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 736 - Use ls-qpack v0.10.7. 737 7382019-10-24 739 - 2.4.10 740 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 741 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 742 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 743 values are not unique). 744 - [BUGFIX] Always set the idle alarm in IETF connection so that it 745 can time out. 746 - Use ls-qpack v0.10.6, as it silences some warnings. 747 7482019-10-21 749 - 2.4.8 750 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 751 7522019-10-15 753 - 2.4.7 754 - Add echo client and server to the distibution. 755 - Add MD5 client and server to the distibution. 756 - Fix http_client: check command-line arguments better, prevent crash. 757 - Fix IETF conn: can_write_ack() should only care about APP PNS. 758 - Client: delay stream creation until handshake succeds. 759 - Reset HTTP stream whose write end is closed prematurely. 760 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 761 - Log reason why engine is tickable. 762 7632019-10-11 764 - 2.4.6 765 - Minor code cleanup and logging improvements. 766 - Server and client programs: include library version (e.g. 2.4.6) 767 into `server' and `user-agent' headers. 768 7692019-10-08 770 - 2.4.5 771 - [OPTIMIZATION]: flush encoder stream only when necessary. 772 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 773 - [BUGFIX] Typo in IETF conn SETTINGS writer. 774 - Use latest BoringSSL. 775 7762019-10-08 777 - 2.4.4 778 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 779 - [BUGFIX] NULL dereference when H3 frame header would be split. 780 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 781 - [BUGFIX] Allow PING frames in IETF mini conn. 782 - [BUGFIX] Mini conns: don't send any packets after receiving 783 CONNECTION_CLOSE. 784 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 785 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 786 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 787 valid stream number). 788 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 789 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 790 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 791 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 792 - Update ls-qpack to v0.10.1. 793 7942019-09-30 795 - 2.4.3 796 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 797 For example, h3-Q043. Chrome will switch to using this format at 798 some point in the future. 799 - [BUGFIX] Send correct value in max_streams_uni transport param 800 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 801 to 0xFFFFFFFF 802 8032019-09-23 804 - 2.4.2 805 - [BUGFIX] H3 framing: fix zero-byte write when space is available 806 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 807 is closed 808 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 809 - [BUGFIX] Fix use-after-free in IETF full conn 810 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 811 SSL object and crypto streams. 812 8132019-09-18 814 - 2.4.0 815 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 816 8172019-09-13 818 - 2.3.1 819 - [BUGFIX] Fix memory leaks 820 - [BUGFIX] Fix unit tests 821 8222019-09-12 823 - 2.3.0 824 - [FEATURE] BBR congestion control is on by default 825 - [BUGFIX] BBR app-limited logic 826 - [BUGFIX] Fix uninitialized warnings in IETF 827 - [BUGFIX] Update ls-qpack to v0.9.14 828 - [CLEANUP] Code cleanup 829 8302019-09-11 831 - 2.2.0 832 - [FEATURE] Server code is included in the library 833 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 834 8352019-05-13 836 - 1.21.2 837 - [OPTIMIZATION] HPACK: use history to improve compression performance 838 8392019-05-06 840 - 1.21.1 841 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 842 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 843 search static and dynamic tables. 844 8452019-04-12 846 - 1.21.0 847 - [FEATURE] Add qlog log module. 848 8492019-04-01 850 - 1.20.0 851 - [FEATURE] Add support for Q046. 852 8532019-03-19 854 - 1.19.6 855 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 856 send. ACK frames placed in packets in buffered queues (optimization 857 introduced in 1.17.15) can be preceded by an ACK frame generated later. 858 In this case, the older ACK frame should not be sent out, as Chromium- 859 based servers flags decrease in the ACK frame's Largest Observed value 860 as an error. 861 8622019-03-05 863 - 1.19.5 864 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 865 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 866 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 867 8682019-02-25 869 - 1.19.4 870 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 871 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 872 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 873 8742019-02-18 875 - 1.19.3 876 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 877 packet number encoding does not exist in Q044. This fixes a 878 regression introduced in '[BUGFIX] Buffered packets can contain 879 ACK frames' -- we need to keep QUIC version in mind when selecting 880 the longest possible packet number encoding used for the buffered 881 packet that carries the ACK. 882 - [BUGFIX] Do not increase CWND when timeout occurs. 883 - http_client: support setting handshake timeout on command line. 884 Use -o handshake_to=timeout. 885 - http_client: use -k to connect UDP socket to pick up ICMP errors. 886 - http_client: allow pathless mode, when only handshake is performed 887 without issuing any requests. This can be done by simply not 888 specifying a -p flag on the command line. 889 8902019-02-11 891 - 1.19.2 892 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 893 - [BUGFIX] Version checking in zero_rtt deserialize function. 894 8952019-02-04 896 - 1.19.1 897 - [BUGFIX] Fix Windows build. 898 8992019-02-04 900 - 1.19.0 901 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 902 information; it can be supplied to a subsequent connect() call. 903 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 904 - [BUGFIX] Resuscitate the Windows build. 905 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 906 - [BUGFIX] Buffered packets can contain ACK frames. 907 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 908 - [BUGFIX] Fix potential null dereference when realloc fails. 909 - cmake: simplify build configuration. 910 9112019-01-28 912 - 1.18.0 913 - [API Change] Can specify clock granularity in engine settings. 914 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 915 2018-04-09, it is not necessary to try to approximate the next tick 916 time in the pacer: it can use fix clock granularity specified by 917 the user. 918 - [BUGFIX] Do not tick constantly before handshake is done. 919 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 920 if we cannot allocate *more* packets, we could still be able to write 921 to one already allocated. 922 - [BUGFIX] Do not schedule pacer if there are no lost packets. 923 9242019-01-17 925 - 1.17.15 926 - [BUGFIX] http_client: make sure only one read per on_read() callback 927 is performed in the header conversion bypass (-B) mode. 928 - http_client: with -E, assign random priority when stream is created. 929 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 930 buffered packet if an ACK is queued. This reduces the number of 931 standalone ACK packets. 932 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 933 stream into an outgoing packet. This change minimizes the number of 934 buffered packets required to store several small HTTP messages by 935 virtue of allowing more than one STREAM frame from HEADERS stream in 936 the same packet. 937 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 938 causes the headers to be written to the same buffered packet queue, 939 thereby improving packet utilization, especially for small HTTP 940 messages. 941 9422019-01-16 943 - 1.17.14 944 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 945 time to download, requests per seconds, and bandwidth. See -t flag. 946 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 947 - [BUGFIX] http_client: do not display cert chain before each request. 948 Now this is only done once per connection, if the handshake is 949 successful and -a option is given. 950 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 951 stream is scheduled to be closed after on_read() callback returns, 952 close it immediately instead of waiting until the end of the tick. 953 If client creates new request from on_close() event, they will be 954 processed in the same tick instead of waiting for the next one. 955 - [BUGFIX] HEADERS stream is critical: always treat it with highest 956 priority. 957 9582019-01-10 959 - 1.17.12 960 - [FEATURE] http_client can now issue parallel requests in the context 961 of a single connection. See -w option. 962 9632019-01-03 964 - 1.17.11 965 - Fix strict aliasing warning in optimized compilation. 966 9672018-12-27 968 - 1.17.10 969 - Fix the example program to be able to use parallel connections 970 again. (See the -n argument.) 971 9722018-12-18 973 - 1.17.9 974 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 975 9762018-12-10 977 - 1.17.8 978 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 979 9802018-12-03 981 - 1.17.7 982 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 983 This prevented PING from ever being sent. 984 9852018-11-29 986 - 1.17.6 987 - Add failsafe: resume sending packets after some time 988 989 The change puts a 1-second limit on the amount of time the engine 990 will not send packets after some packets are delayed. This makes 991 the library robust in case the user does not unblock the engine 992 explicitly using lsquic_engine_send_unsent_packets() call. 993 994 - [BUGFIX] Handle corner cases in send controller when packets are 995 a) delayed or b) dropped during repackaging. 996 - [BUGFIX] Memory leak: destroy buffered packets during controller 997 cleanup. 998 9992018-11-16 1000 - 1.17.3 1001 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 1002 10032018-10-19 1004 - 1.17.2 1005 - [BUGFIX] Memory leak in test_frame_rw unit test. 1006 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 1007 flags. (Only a problem in unit tests -- benign otherwise.) 1008 10092018-10-16 1010 - 1.17.0 1011 - [API Change] Packet out Memory Interface (PMI) update: 1012 - Split PMI pool return into pmi_release and pmi_return 1013 - PMI callbacks take peer_ctx and is_ipv6 arguments 1014 - [BUGFIX] Fix use-after-free when certificate is updated 1015 - Silence gcc warning in optimized mode by performing useless 1016 initialization 1017 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 1018 DEVEL_MODE 1019 10202018-10-03 1021 - 1.16.0 1022 - [API Change] Add lsquic_conn_n_avail_streams() 1023 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 1024 10252018-09-27 1026 - 1.15.0 1027 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 1028 - [BUGFIX] free uncompressed headers correctly when error occurs 1029 10302018-09-12 1031 - 1.14.3 1032 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 1033 - [BUGFIX] Drop packets that would become empty due to repackaging. 1034 Packets on the scheduled queue may be marked for repackaging. 1035 Frames such as ACK frame that are never resent are removed from 1036 repackaged packets. We must check that the newly repackaged packet 1037 would not be empty. If it would be, it is destroyed instead and 1038 the next packet on the scheduled queue is used. Note that this 1039 change only affects the logic to return the next packet to be sent. 1040 Lost packets that are being rescheduled are already processed in 1041 this fashion. 1042 - Byteswap CID before logging it - this makes it match Chrome CIDs. 1043 (Except Q035, which is the last little-endian GQUIC version we 1044 support.) 1045 10462018-09-06 1047 - 1.14.0 1048 - [API Change] Disable packet sending if full batch cannot be sent 1049 If lsquic_packets_out_f() cannot send the whole batch, disable 1050 packet sending until lsquic_engine_send_unsent_packets() is called. 1051 - [BUGFIX] Handle case when STREAM frame does not fit. 1052 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 1053 may send overlapping STREAM frames even if using versions older 1054 than Q043. 1055 - Custom header set fixes: 1056 - set "FIN reached" flag when custom header with FIN flag is 1057 claimed; 1058 - do not return custom header set for a reset stream. 1059 10602018-08-27 1061 1062 - 1.13.0 1063 - [FEATURE, API Change] Add ability to create custom header set 1064 objects via callbacks. This avoids reading and re-parsing 1065 headers from the stream. 1066 10672018-08-27 1068 1069 - 1.12.4 1070 - Fix memory leak when engine is destroyed 1071 - Fix memory leak in http_client 1072 - Fix gcc warning in unit tests 1073 10742018-08-22 1075 1076 - 1.12.3 1077 - [BUGFIX] Fix duplicate STREAM frame detection 1078 10792018-08-20 1080 1081 - 1.12.2 1082 - [BUGFIX] Update count of scheduled bytes when adjusting size of 1083 an already-scheduled packet. 1084 - Emit info instead of warning messages when stream is used in 1085 unexpected ways. 1086 10872018-08-17 1088 1089 - 1.12.0 1090 - [FEATURE, API Change] Add support for certificate verification 1091 10922018-08-16 1093 1094 - 1.11.1 1095 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 1096 10972018-08-15 1098 1099 - 1.11.0 1100 - [FEATURE] Add support for Q044. 1101 11022018-08-09 1103 1104 - 1.10.2 1105 - [BUGFIX] Don't go over limit when creating delayed streams 1106 11072018-07-10 1108 1109 - 1.10.1 1110 - [BUGFIX] process connections after each batch of packets is read 1111 This avoids a problem of accumulating a very large list of packets 1112 (possible when speeds are high and socket's receive buffer is large) 1113 and processing it all at once. 1114 - If glibc is older than 2.17, link with rt. This is necessary for 1115 clock_getres(2). 1116 - Add version macros to lsquic.h; remove unnecessary includes. 1117 11182018-06-13 1119 1120 - [BUGFIX] allow multiple parallel connections by default 1121 1122 Use the original method of tracking connections by CIDs by default. 1123 If zero-sized CID support is turned on, connections are tracked by 1124 the address. A new connection is not created if another connection 1125 is using the same network address 1126 11272018-05-30 1128 1129 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 1130 11312018-05-24 1132 1133 - Close connection properly when packet encryption fails 1134 11352018-05-23 1136 1137 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 1138 11392018-05-21 1140 1141 - [API Change] Add optional callback to call when handshake is done 1142 - [API Change, BUGFIX] After send failure, wait until transport available 1143 11442018-05-18 1145 1146 - [API] Expose useful lsquic_ver2str[] in lsquic.h 1147 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 1148 - Improve checks of number of incoming streams limit and associated 1149 error reporting. 1150 - [BUGFIX] Command-line option `-6` now works correctly. 1151 11522018-05-16 1153 1154 - [FEATURE] DNS resolution 1155 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 1156 - http_client: fix priority range generated by -E flag 1157 11582018-05-09 1159 1160 - [FEATURE] Add support for Q043. 1161 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 1162 - Fix typo in debug message. 1163 - Fix code indentation. 1164 - Add /* fallthru */ comment to stop newer gcc from complaining. 1165 - Logger: fix compilation of optimized Windows build. 1166 11672018-05-04 1168 1169 - [FEATURE] Add support for Q042. 1170 - Remove comment: MSPC is obsolete (no code changes) 1171 - Prog: use lsquic_str2ver() when processing -o version flag 1172 - Remove unused CTIM and SRBF transport parameters 1173 - Disable QUIC versions Q037 and Q038 by default 1174 - Fix Windows compilation by including compat header file in 1175 lshpack.c 1176 - Address warnings produced by newer versions of gcc 1177 - Future-proof: turn off -Werror 1178 11792018-05-02 1180 1181 - [BUGFIX] Make lsquic_conn_quic_version() available 1182 - Switch to using ls-hpack 1.1 1183 - [BUGFIX] Do not ignore stream resets after receiving FIN 1184 11852018-04-27 1186 1187 - HPACK: do not allow header block to end with table size update. 1188 11892018-04-25 1190 1191 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 1192 packets. 1193 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 1194 - [BUGFIX] connections with blocked scheduled packets are not tickable 1195 for sending. 1196 - [BUGFIX] Conn is tickable if it wants to send a connection-level 1197 frame. 1198 11992018-04-23 1200 1201 - Fix busy loop: tickable must make progress. When connection is 1202 self-reporting as tickable, it must make progress when ticked. There 1203 are two issues: 1204 1. If there are buffered packets, the connection is only tickable if 1205 they can be sent out. 1206 2. A connection is tickable if there are streams on the servicing 1207 queue. When the tick occurs, we must service the stream 1208 independent of whether any packets are sent. 1209 - Fix assertion in pacer which can be incorrect under some 1210 conditions. 1211 - cmake: do not turn on address sanitizer if in Travis. 1212 12132018-04-20 1214 1215 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 1216 changes. 1217 12182018-04-19 1219 1220 - [BUGFIX] Add connection to Tickable Queue on stream write 1221 - cmake: use MSVC variable instead of trying to detect 1222 - engine: improve connection incref/decref logging 1223 - stream: don't ignore errors that may occur on triggered flush 1224 - connection: remove obsolete method 1225 - engine: indicate connection as tickable if previous call went 1226 over threshold 1227 12282018-04-09 1229 1230 [API Change, OPTIMIZATION] Only process conns that need to be processed 1231 1232 The API is simplified: do not expose the user code to several 1233 queues. A "connection queue" is now an internal concept. 1234 The user processes connections using the single function 1235 lsquic_engine_process_conns(). When this function is called, 1236 only those connections are processed that need to be processed. 1237 A connection needs to be processed when: 1238 1239 1. New incoming packets have been fed to the connection. 1240 2. User wants to read from a stream that is readable. 1241 3. User wants to write to a stream that is writeable. 1242 4. There are buffered packets that can be sent out. (This 1243 means that the user wrote to a stream outside of the 1244 lsquic library callback.) 1245 5. A control frame (such as BLOCKED) needs to be sent out. 1246 6. A stream needs to be serviced or delayed stream needs to 1247 be created. 1248 7. An alarm rings. 1249 8. Pacer timer expires. 1250 1251 To achieve this, the library places the connections into two 1252 priority queues (min heaps): 1253 1254 1. Tickable Queue; and 1255 2. Advisory Tick Time queue (ATTQ). 1256 1257 Each time lsquic_engine_process_conns() is called, the Tickable 1258 Queue is emptied. After the connections have been ticked, they are 1259 queried again: if a connection is not being closed, it is placed 1260 either in the Tickable Queue if it is ready to be ticked again or 1261 it is placed in the Advisory Tick Time Queue. It is assumed that 1262 a connection always has at least one timer set (the idle alarm). 1263 1264 The connections in the Tickable Queue are arranged in the least 1265 recently ticked order. This lets connections that have been quiet 1266 longer to get their packets scheduled first. 1267 1268 This change means that the library no longer needs to be ticked 1269 periodically. The user code can query the library when is the 1270 next tick event and schedule it exactly. When connections are 1271 processed, only the tickable connections are processed, not *all* 1272 the connections. When there are no tick events, it means that no 1273 timer event is necessary -- only the file descriptor READ event 1274 is active. 1275 1276 The following are improvements and simplifications that have 1277 been triggered: 1278 1279 - Queue of connections with incoming packets is gone. 1280 - "Pending Read/Write Events" Queue is gone (along with its 1281 history and progress checks). This queue has become the 1282 Tickable Queue. 1283 - The connection hash no longer needs to track the connection 1284 insertion order. 1285 12862018-04-02 1287 1288 - [FEATURE] Windows support 1289 1290 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 1291 12922018-03-09 1293 1294 - [OPTIMIZATION] Merge series of ACKs if possible 1295 1296 Parsed single-range ACK frames (that is the majority of frames) are 1297 saved in the connection and their processing is deferred until the 1298 connection is ticked. If several ACKs come in a series between 1299 adjacent ticks, we check whether the latest ACK is a strict superset 1300 of the saved ACK. If it is, the older ACK is not processed. 1301 1302 If ACK frames can be merged, they are merged and only one of them is 1303 either processed or saved. 1304 1305 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 1306 1307 Never generate a gap in the sent packet number sequence. This reduces 1308 the send history to a single number instead of potentially a series of 1309 packet ranges and thereby speeds up ACK verification. 1310 1311 By default, detecting a gap in the send history is not fatal: only a 1312 single warning is generated per connection. The connection can continue 1313 to operate even if the ACK verification code is not able to detect some 1314 inconsistencies. 1315 1316 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 1317 1318 The first part of struct lsquic_send_ctl now consists of members that 1319 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 1320 which is the normal case). To speed up reads and writes, we no longer 1321 try to save space by using 8- and 16-bit integers. Use regular integer 1322 width for everything. 1323 1324 - [OPTIMIZATION] Cache size of sent packet. 1325 1326 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 1327 1328 Instead of parsing our own ACK frames when packet has been acked, 1329 use the value saved in the packet_out structure when the ACK frame 1330 was generated. 1331 1332 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 1333 1334 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 1335 1336 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 1337 1338 - Fix: http_client: fix -I flag; switch assert() to abort() 1339 13402018-02-26 1341 - [API Change] lsquic_engine_connect() returns pointer to the connection 1342 object. 1343 - [API Change] Add lsquic_conn_get_engine() to get engine object from 1344 connection object. 1345 - [API Change] Add lsquic_conn_status() to query connection status. 1346 - [API Change] Add add lsquic_conn_set_ctx(). 1347 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 1348 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 1349 arrives. 1350 - [OPTIMIZATION] Do not compile expensive send controller sanity check 1351 by default. 1352 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 1353 - [OPTIMIZATION] Only make squeeze function call if necessary. 1354 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 1355 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 1356 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 1357 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 1358 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 1359 ordered. 1360 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 1361 - Fix: reset incoming streams that arrive after we send GOAWAY. 1362 - Fix: delay client on_new_conn() call until connection is fully set up. 1363 - Fixes to buffered packets logic: splitting, STREAM frame elision. 1364 - Fix: do not dispatch on_write callback if no packets are available. 1365 - Fix WINDOW_UPDATE send and resend logic. 1366 - Fix STREAM frame extension code. 1367 - Fix: Drop unflushed data when stream is reset. 1368 - Switch to tracking CWND using bytes rather than packets. 1369 - Fix TCP friendly adjustment in cubic. 1370 - Fix: do not generate invalid STOP_WAITING frames during high packet 1371 loss. 1372 - Pacer fixes. 1373 13742017-12-18 1375 1376 - Fix: better follow cubic curve after idle period 1377 - Fix: add missing parts to outgoing packet splitting code 1378 - Fix: compilation using gcc 4.8.4 1379 13802017-10-31 1381 1382 - Add APIs.txt -- describes LSQUIC APIs 1383 13842017-10-31 1385 1386 - [API Change] Sendfile-like functionality is gone. The stream no 1387 longer opens files and deals with file descriptors. (Among other 1388 things, this makes the code more portable.) Three writing functions 1389 are provided: 1390 1391 lsquic_stream_write 1392 lsquic_stream_writev 1393 lsquic_stream_writef (NEW) 1394 1395 lsquic_stream_writef() is given an abstract reader that has function 1396 pointers for size() and read() functions which the user can implement. 1397 This is the most flexible way. lsquic_stream_write() and 1398 lsquic_stream_writev() are now both implemented as wrappers around 1399 lsquic_stream_writef(). 1400 1401 - [OPTIMIZATION] When writing to stream, be it within or without the 1402 on_write() callback, place data directly into packet buffer, 1403 bypassing auxiliary data structures. This reduces amount of memory 1404 required, for the amount of data that can be written is limited 1405 by the congestion window. 1406 1407 To support writes outside the on_write() callback, we keep N 1408 outgoing packet buffers per connection which can be written to 1409 by any stream. One half of these are reserved for the highest 1410 priority stream(s), the other half for all other streams. This way, 1411 low-priority streams cannot write instead of high-priority streams 1412 and, on the other hand, low-priority streams get a chance to send 1413 their packets out. 1414 1415 The algorithm is as follows: 1416 1417 - When user writes to stream outside of the callback: 1418 - If this is the highest priority stream, place it onto the 1419 reserved N/2 queue or fail. 1420 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 1421 rather than N/2, allowing high-priority streams to write as 1422 much as can be sent.) 1423 - If the stream is not the highest priority, try to place the 1424 data onto the reserved N/2 queue or fail. 1425 - When tick occurs *and* more packets can be scheduled: 1426 - Transfer packets from the high N/2 queue to the scheduled 1427 queue. 1428 - If more scheduling is allowed: 1429 - Call on_write callbacks for highest-priority streams, 1430 placing resulting packets directly onto the scheduled queue. 1431 - If more scheduling is allowed: 1432 - Transfer packets from the low N/2 queue to the scheduled 1433 queue. 1434 - If more scheduling is allowed: 1435 - Call on_write callbacks for non-highest-priority streams, 1436 placing resulting packets directly onto the scheduled queue 1437 1438 The number N is currently 20, but it could be varied based on 1439 resource usage. 1440 1441 - If stream is created due to incoming headers, make headers readable 1442 from on_new. 1443 1444 - Outgoing packets are no longer marked non-writeable to prevent placing 1445 more than one STREAM frame from the same stream into a single packet. 1446 This property is maintained via code flow and an explicit check. 1447 Packets for stream data are allocated using a special function. 1448 1449 - STREAM frame elision is cheaper, as we only perform it if a reset 1450 stream has outgoing packets referencing it. 1451 1452 - lsquic_packet_out_t is smaller, as stream_rec elements are now 1453 inside a union. 1454 14552017-10-12 1456 1457 - Do not send RST_STREAM when stream is closed for reading 1458 - Raise maximum header size from 4K to 64K 1459 - Check header name and value lengths against maximum imposed by HPACK 1460 - Fix NULL dereference in stream flow controller 1461 14622017-10-09 1463 1464 - Hide handshake implementation behind a set of function pointers 1465 - Use monotonically increasing clock 1466 - Make sure that retx delay is not larger than the max of 60 seconds 1467 14682017-09-29 1469 1470 - A few fixes to code and README 1471 14722017-09-28 1473 1474 - Add support for Q041; drop support for Q040 1475 14762017-09-27 1477 1478 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 1479 14802017-09-26 1481 1482 - Add support for Mac OS 1483 - Add support for Raspberry Pi 1484 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 1485 14862017-09-22 1487 1488 - Initial release 1489