CHANGELOG revision 078f5379
12020-10-22 2 - 2.23.3 3 - [BUGFIX] Update packetization threshold when writing to stream 4 after packet size is reduced following an RTO. 5 62020-10-21 7 - 2.23.2 8 - Add QPACK stats collection and experimentation mode, see the new 9 es_qpack_experiment setting. 10 - Log busy connection stats every second using the new "conn-stats" 11 log module. 12 - Log about skipping only once. 13 - Update HTTP/3 greased frame type formula. 14 - Use ls-qpack v2.2.1. 15 162020-10-13 17 - 2.23.1 18 - [FEATURE] IETF Client 0-RTT support. 19 - [BUGFIX] Do not schedule MTU probe on first tick. 20 - [BUGFIX] Parsing DATAGRAM frame. 21 - [BUGFIX] If push promise fails, do not invoke hset destructor. 22 - [BUGFIX] Client: When connections are IDed by port number, check DCID. 23 Fixes issue #176. 24 - [BUGFIX] Regression introduced in 2.22.0: use correct number of 25 PNSs for IETF mini conn during promotion. 26 - Revert the 2.22.1 lsquic_is_valid_hs_packet change. All that was 27 necessary is a change to the way we call it in lsquic_engine. No 28 change to the function itself is required. 29 302020-10-08 31 - 2.22.1 32 - [BUGFIX] Function that checks validity of handshake packets. 33 342020-10-07 35 - 2.22.0 36 - [FEATURE] Extensible HTTP Priorities (HTTP/3 only). 37 - [FEATURE] Add conn context to packet-out memory interface (PR #175). 38 - [BUGFIX] gQUIC proof generation: allocate buffer big enough for 39 signature (issue #173). 40 - [BUGFIX] Make library thread-safe: drop use of global variables 41 (issue #133, issue #167). 42 - [BUGFIX] Deactivate only *recent* HQ frame, not any HQ frame. 43 - [BUGFIX] gQUIC server: associate compressed cert with SSL_CTX, 44 instead of keeping them in a separate hash, potentially leading 45 to mismatches. 46 - [BUGFIX] Stream data discard infinite loop: break on FIN. 47 - cmake: add install target via -DCMAKE_INSTALL_PREFIX (PR #171). 48 - Support randomized packet number to begin a connection. 49 - Mini and full IETF connection size optimization. 50 - http_client: specify HTTP priorities based on stream conditions. 51 522020-09-29 53 - 2.21.0 54 - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support. 55 - [API] Let user generate Souce Connection IDs. 56 - [FEATURE] Allow building lsquic as shared library. 57 - [OPTIMIZATION] Receive history: use a single contiguous memory 58 block for everything. 59 - Deprecate QUIC versions ID-27 and ID-30. 60 612020-09-25 62 - 2.20.2 63 - [BUGFIX] Memory leak: free pushed promise when refcnt is zero. 64 - [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets. 65 662020-09-23 67 - 2.20.1 68 - [BUGFIX] Typo in new "validate peer addr by DCID" code. It is 69 a benign bug (works either way), but better to fix it. 70 - Simplify Stream Priority Iterator (SPI). 71 - Minor documentation updates. 72 732020-09-15 74 - 2.20.0 75 - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support. 76 - [FEATURE] Unreliable Datagram Extension support. 77 - [FEATURE] Adaptive congestion controller. 78 - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams. 79 - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO 80 data comes in. 81 - [BUGFIX] Spin bit is now strictly per path; value is reset on 82 DCID change. 83 - [BUGFIX] Check that max value of max_streams_uni and 84 max_streams_bidi TPs is 2^60. 85 - [BUGFIX] Close IETF mini conn immediately if crypto session 86 cannot be initialized. 87 - Deprecate ID-28 (no browser uses it): it's no longer in the 88 default versions list. 89 - New programs duck_server and duck_client that implement the 90 experimental siduck-00 protocol. They quack! 91 - IETF crypto streams: don't limit ourselves from sending. 92 - Command-line programs: turn off QL loss bits if -G is used, as 93 Wireshark cannot decrypt QUIC packets when this extension is used. 94 - Turn all h3 framing unit tests back on. 95 - Fix malo initialization when compiled in no-pool mode. 96 972020-09-08 98 - 2.19.10 99 - [FEATURE] Add lsquic_stream_pwritev(). This function allows one to 100 reduce the number of system calls required to read a file from disk 101 by using lsquic_stream_pwritev() together with preadv(2). 102 - [BUGFIX] When stream is reset, it is writeable -- let user collect 103 the error. 104 - [BUGFIX] Calculate correct conn flow control if reading ends early. 105 - [BUGFIX] Remove stream from read and write queues on internal 106 shutdown. This is a regression introduced in 2.19.7. 107 - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation. 108 - Turn off mini conn history when compiling with Visual Studio; this 109 allows the project to compile on Windows again. 110 - http_client: Add -3 flag to stop reading from streams early; code 111 cleanup. 112 - Don't use -Werror. 113 1142020-09-02 115 - 2.19.8 116 - [FEATURE] Update the timestamp extension to latest version. 117 - [FEATURE] Cope with appearance of ECN blackholes. 118 - [OPTIMIZATION] return packno offset and size when header is generated. 119 - [BUGFIX] ignore old ACK frames in mini conns. 120 - [BUGFIX] Mark initial server path as initialized. 121 - [BUGFIX] Do not merge ACK if ECN counts do not match. 122 - Turn incoming packet number history in mini conn back on. 123 - Record mini conn event history again when compiled in debug mode. 124 - IETF mini conn: log when ACK is queued. 125 - Clean up and refactor code in several places. 126 1272020-08-26 128 - 2.19.7 129 - Handle ECT-CE event: issue a loss event. 130 - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE. 131 - Use Max Push ID in GOAWAY frame to cancel promises. 132 - Add support for HTTP/3 CANCEL_PUSH frame. 133 - lsquic_stream_is_pushed: streams without headers are never pushed. 134 - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down. 135 - Improve logic whether to generate CONNECTION_CLOSE. 136 1372020-08-20 138 - 2.19.6 139 - Don't process incoming ECN marks if ECN is not enabled. 140 - Schedule ACK when incoming packet is marked with CE. 141 1422020-08-11 143 - 2.19.5 144 - [BUGFIX] Generate frame record when moving an ACK from one buffered 145 packet to another. 146 1472020-08-06 148 - 2.19.4 149 - [BUGFIX] Do not return an oversize MTU probe to connection twice. 150 - [FEATURE] Delayed Acks updated to latest draft. Still experimental. 151 - Minor code cleanup in IETF full connection. 152 1532020-08-04 154 - 2.19.3 155 - [BUGFIX] Regression in 2.19.1 that breaks Q050 156 1572020-07-30 158 - 2.19.2 159 - [BUGFIX] Do not reduce PLPMTU size by network overhead. 160 - [BUGFIX] Windows build. 161 1622020-07-29 163 - 2.19.1 164 - [FEATURE] DPLPMTUD support. IETF connections now search for the 165 maximum packet size, improving throughput. 166 - [DEBUG] Record event in stream history when on_close() is called 167 in dtor. 168 1692020-07-22 170 - 2.18.2 171 - [BUGFIX] Send prediction: lone path challenges do not get squeezed out 172 - Fix crash in http_client: now -K and -B can be used simultaneously 173 1742020-07-14 175 - 2.18.1 176 - [FEATURE] Implement the "QUIC bit grease" extension. 177 - [BUGFIX] Selecting CID used for logging on client. 178 - [BUGFIX] Header protection assertion. 179 - [BUGFIX] Server: enable SSL key logging when cert lookup callback 180 is not set. 181 - Remove some dead code. 182 1832020-07-06 184 - 2.18.0 185 - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT" 186 always refers to early data, meaning a request that the server can 187 reply to in the very first return flight. A more appropriate name 188 for what we support on the client site is "session resumption," which 189 is standard TLS terminology. Later, when we add support for 0-RTT 190 (early data), we can use the 0-RTT terminology again, this time in 191 proper context. 192 - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL. 193 - [BUGFIX] Make connection tickable when it's marked as closed. 194 - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode. 195 - Several documentation fixes and improvements. 196 - Minor code cleanup. 197 1982020-06-24 199 - 2.17.2 200 - [BUGFIX] Infinite loop in stream: advance read offset when discarding 201 data. 202 - [OPTIMIZATION] Header protection: only initialize cipher once. 203 - [OPTIMIZATION] Batch header protection application. 204 2052020-06-18 206 - 2.17.1 207 - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support. 208 - [BUGFIX] Check that scheduled packets are also sendable when 209 calculating a connection's "tickable" property. 210 - [BUGFIX] Don't count scheduled packets as in-flight when pacer is 211 checked on tick. 212 - gQUIC: delay calling on_new for pushed stream until headers are 213 available. 214 - Allow nested calls to lsquic_engine_connect(). 215 2162020-06-15 217 - 2.16.3 218 - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn 219 instead of dropping them. 220 - [BUGFIX] Crash: check decrypt context before using it. This regression 221 was introduced in 2.16.2. 222 2232020-06-12 224 - 2.16.2 225 - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in 226 ClientHello. This change requires using a newer version of BoringSSL. 227 - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor. 228 - [BUGFIX] IETF QUIC client: narrow migration check to a single path. 229 - [BUGFIX] NULL dereference: set function pointers for alarm for path 230 challenges 2 and 3. 231 - [BUGFIX] HTTP/3 headers may be followed immediately by trailers. 232 - [BUGFIX] Log messages when SCID changes. 233 2342020-06-09 235 - 2.16.1 236 - [FEATURE] Use "no-progress timeout" after which connection is closed. 237 - [BUGFIX] Select new SCID when current SCID is retired. 238 - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during 239 mini/full handoff. 240 - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated. 241 - [BUGFIX] Mini conn: consider amplification when deciding to return 242 TICK_SEND. 243 - [BUGFIX] Don't double-count tag length in amplification logic. 244 - [BUGFIX] Don't squeeze out lone path challenges. 245 - [BUGFIX] Log messages dealing with scheduled packet queue squeezing. 246 - [BUGFIX] don't wipe current path if no path challenge responses 247 come back. 248 - [BUGFIX] When path is reset, don't lose path_id which is used for 249 logging. 250 - Downgrade flow control violations to info log level from warnings. 251 - Fix connection cap extra check, avoid checks in nested calls. 252 - Fix some unit tests when extra checks are enabled. 253 - Use ls-hpack 2.2.1. 254 - Turn off unconditional extra checks for IETF clients. 255 - Extra checks: don't verify sent size of hello packets. Client 256 changes DCID length and this check will fail. 257 2582020-06-03 259 - 2.16.0 260 - [API] Use lsxpack_header v206. 261 - [FEATURE] Windows supported. 262 - [BUGFIX] Fix uninitialized variable use in client (regression in 263 2.15.0). 264 - Use ls-hpack 2.2.0. 265 - Use ls-qpack 2.2.0. 266 - Sample programs: fix the way maximum number of packets is 267 calculated. 268 - Remove some dead code. 269 2702020-05-27 271 - 2.15.0 272 - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support. 273 - [BUGFIX] Ignore Retry packets after other packets are decrypted 274 successfully. 275 - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte 276 length minimum. 277 - http_client: fix and optimize lsxpack_header allocator. 278 - Drop support for Internet Draft 25. 279 2802020-05-19 281 - 2.14.8 282 - Support Android. 283 - Rerrange tree: move command-line examples into bin/ and unit 284 tests into tests/ from test/unittests/. 285 2862020-05-12 287 - 2.14.7 288 - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050. 289 - [BUGFIX] Frame reader: skip headers if target stream is closed. 290 2912020-05-06 292 - 2.14.6 293 - [BUGFIX] Fix amplification mitigation in 0-RTT case. 294 - [BUGFIX] IETF mini connection should not tickable if cannot send 295 a packet due to amplification. 296 - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2. 297 - [BUGFIX] Qlog server certificates for IETF QUIC connections. 298 - [BUGFIX] Uninitialized struct padding usage in tokgen (benign). 299 - [BUGFIX] Incorrect argument to shi_lookup() (benign). 300 3012020-04-29 302 - 2.14.5 303 - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match. 304 - [BUGFIX] Frame reader: skip headers if target stream is not found. 305 - [BUGFIX] Log message in QPACK decoder handler. 306 3072020-04-24 308 - 2.14.4 309 - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams. 310 - [BUGFIX] IETF client: set correct flags on bidirectional streams. 311 - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned 312 streams. 313 - [BUGFIX] Do not call header callbacks after stream is closed. 314 - Use ls-qpack 2.1.1 315 3162020-04-15 317 - 2.14.3 318 - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback. 319 - [BUGFIX] Use ls-hpack 2.1.1 320 - Improve stream code readability. 321 - Use ls-qpack 2.0.5 322 3232020-04-08 324 - 2.14.2 325 - [BUGFIX] Use ls-qpack 2.0.4 326 - [BUGFIX] Honor max packet size on the client and when path changes. 327 - http_server: fix prepare_decode() function. 328 3292020-04-07 330 - 2.14.1 331 - [BUGFIX] Place connections on tickable queue when sending is reenabled. 332 - [BUGFIX] A connection is tickable if it has unsent packets. 333 - [BUGFIX] Heed peer's max_packet_size transport parameter. 334 3352020-03-30 336 - 2.14.0 337 - [API] Use lsxpack_header structure to send HTTP headers. 338 - [OPTIMIZATION] nocopy's readable_bytes() function. 339 - http_server: fix typo in error message 340 - Use ls-hpack 2.1.0. 341 - Use ls-qpack 2.0.0. 342 3432020-03-23 344 - 2.13.3 345 - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked. 346 3472020-03-13 348 - 2.13.2 349 - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode(). 350 3512020-03-12 352 - 2.13.1 353 - [API] Use lsxpack_header structure to process incoming headers. 354 - [BUGFIX] Fix assertion when zero-padding Initial packet. 355 - [BUGFIX] Use idle timeout before we learn of peer's value. 356 - Use ls-hpack 2.0.1 -- has lsxpack_header changes. 357 - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not 358 used yet). 359 - Code cleanup: prefix exported functions with "lsquic_". 360 3612020-03-02 362 - 2.12.0 363 - [FEATURE] QUIC timestamps extension. 364 - [API] New: ea_alpn that is used when not in HTTP mode. 365 - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC. 366 - [BUGFIX] Benign double-free -- issue #110. 367 - [BUGFIX] Printing of transport parameters. 368 3692020-02-24 370 - 2.11.1 371 - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support. 372 - [FEATURE] Add experimental delayed ACKs extension. 373 - Drop support for Internet Draft 24. 374 - Code cleanup. 375 3762020-02-14 377 - 2.10.6 378 - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error. 379 - [BUGFIX] Send gap warning due to missing poisoned packet. 380 - Stream unit test for scenario in issue #106. 381 3822020-02-13 383 - 2.10.5 384 - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct 385 time. 386 - Refactor transport parameters module. 387 - Minor code cleanup. 388 3892020-02-11 390 - 2.10.4 391 - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received. 392 - [BUGFIX] Don't treat garbage UDP padding as library error; ignore 393 it instead. 394 - [BUGFIX] Fix compilation on FreeBSD (missing header). 395 - Code cleanup: remove unnecessary #includes. 396 3972020-01-31 398 - 2.10.3 399 - [BUGFIX] Cancel path responses and challenges on old path when 400 switching to new path 401 - Logging network path information. 402 4032020-01-30 404 - 2.10.2 405 - [BUGFIX] Do not delay ACKs for Initial and Handshake packets. 406 - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn 407 promotion. 408 - Logging improvements. 409 - http_client: discard data faster. 410 4112020-01-29 412 - 2.10.1 413 - [BUGFIX] Coalesced packets could get longer than normal packet 414 size. 415 - Add spin bit configuration option es_spin (-o spin=[01]). 416 - Disable spin bit in 1/16 of connections. 417 - Improve logging a bit. 418 4192020-01-28 420 - 2.10.0 421 - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support. 422 - [API] Drop support for ID-23. 423 - [BUGFIX] Set key phase bit on outgoing packets correctly. 424 - Code cleanup. 425 4262020-01-20 427 - 2.9.0 428 - [API] Drop support for Q039. 429 - Improve ACK-queuing logic. Send an ACK once in a while if 430 peer keeps on sending non-ack-eliciting packets. 431 - Improve Alt-Svc string: Q050 and later are not included in 432 the old-style "quic" string. 433 - Send stateless resets if connection could not be promoted. 434 - Schedule MAX_DATA if needed when DATA_BLOCKED is received. 435 - Use ls-qpack 0.11.2 -- needed for server push optimization. 436 - Code cleanup: handle some error cases, improve logging. 437 4382020-01-16 439 - 2.8.9 440 - [BUGFIX] Use ls-qpack 0.11.1 441 - [OPTIMIZATION] Generate random bytes in batches. 442 - Change loss_bits transport parameter ID to 0x1057 following 443 latest draft. 444 - Randomize period with which PINGs are sent to elicit ACKs. 445 - Some refactoring and code cleanup. 446 4472020-01-14 448 - 2.8.8 449 - [BUGFIX] Invalid read when parsing IETF transport parameters 450 (this was benign). 451 - [OPTIMIZATION] Frame bundling when using buffered packets in 452 IETF QUIC: a) flush QPACK decoder stream and b) include ACKs 453 in opportunistic fashion. 454 - Fix HTTP/3 framing unit test. 455 - Code cleanup. 456 4572020-01-09 458 - 2.8.7 459 - [BUGFIX] Initial packet size check for IETF mini conn applies to 460 UDP payload, not QUIC packet. 461 - Support old and new school loss_bits transport parameter. 462 - Use Q run length of 64 as suggested in the loss bits Draft. 463 - Undo square wave count when packet is delayed. 464 - Code cleanup; minor fixes. 465 4662020-01-06 467 - 2.8.5 468 - [HTTP3] Verify number of bytes in incoming DATA frames against 469 content-length. 470 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 471 decoder window. This addresses a potential attack whereby client 472 can cause the server to keep allocating memory. See Security 473 Considerations in the QPACK draft. 474 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 475 - [BUGFIX] Init IETF connection flow controller using correct setting. 476 - [BUGFIX] Fix unintended sign extension when removing header protection. 477 - Code cleanup and minor fixes. 478 4792019-12-30 480 - 2.8.1 481 - [FEATURE] Use occasional packet number gaps to detect optimistic 482 ACK attacks. 483 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 484 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 485 ACK frames. 486 - IETF QUIC: use RTT estimate in ack timeout calculation. 487 - IETF handshake: abort conn when unexpected errors occur. 488 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 489 - Server: enforce 1200 byte Initial minimum packet size. 490 - [CLEANUP] Remove code to disable gQUIC crypto. 491 - [CLEANUP] Remove n_timestamps from ACK info struct. 492 - Optimize driver: reuse previous ancillary message when possible. 493 4942019-12-23 495 - 2.8.0 496 - [FEATURE] Add support for Q050. 497 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 498 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 499 logging. 500 5012019-12-18 502 - 2.7.3 503 - [DEBUG] Further dedup next advisory tick messages when reason is 504 the same. 505 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 506 GitHub bug #94. 507 - Use Cubic by default again instead of BBR, as it delivers more 508 consistent performance. 509 5102019-12-11 511 - 2.7.2 512 - [BUGFIX] Send controller: update scheduled bytes when DCID length 513 changes (IETF client). 514 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 515 that we use loss chains. 516 - [PORTABILITY] Fix build on Alpine Linux. 517 - [PORTABILITY] Fix build using XCode. 518 - Client initial DCID length: use RAND_bytes() instead of rand(3). 519 - Add unit tests for connection min heap. 520 - [DEBUG] Log CID in gQUIC handshake module 521 - [DEBUG] Turn on extra checks for IETF client send controller. 522 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 523 - [DEBUG] QPACK decoder handler: log header error code. 524 5252019-12-05 526 - 2.7.1 527 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 528 ignore_init() makes an assumption that the send controller has access 529 to all outgoing packets. This change wraps a few IETF full connection 530 methods to delay calling ignore_init() until the engine returns all 531 outgoing packets that were batched. 532 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 533 This needs to be done because the value of errno may be lost on 534 some platforms. 535 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 536 - [BUGFIX] Do not cancel header block processing after failure, as 537 QPACK releases the reference in that case. 538 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 539 - Several small improvements to the test server. 540 5412019-11-27 542 - 2.7.0 543 - [API, FEATURE] Close connection immediately when ea_packets_out() 544 fails with errno != EAGAIN. The API change is that errno is now 545 examined. Make sure to set it if using something other than 546 sendmsg() to send packets. 547 - [CLEANUP] Immediate close logic in IETF full conn. 548 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 549 5502019-11-22 551 - 2.6.7 552 - [FEATURE] Implement the QL extension (offered by default). 553 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 554 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 555 - [DEBUG] Turn on debug message for next advisory tick. 556 5572019-11-20 558 - 2.6.6 559 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 560 - [BUGFIX] Truncate log messages instead of throwing them away. 561 5622019-11-15 563 - 2.6.5 564 - [BUGFIX] High priority buffered packet queue length. 565 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 566 5672019-11-12 568 - 2.6.3 569 - [BUGFIX] Close DATA frames with empty payload correctly. 570 5712019-11-11 572 - 2.6.2 573 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 574 packets. 575 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 576 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 577 connection. 578 - [BUGFIX] Client: don't send duplicate reset tokens. 579 - [BUGFIX] Remove invalid assertion in H3 framing code. 580 - Silence a warning in send ctl by restructuring switch() statement. 581 5822019-11-08 583 - 2.6.1 584 - [BUGFIX] set retry token on all resubmitted packets. 585 - Event log: log sent packet flags. In particular, this allows one 586 to see whether token was sent. 587 - Don't migrate client if es_allow_migration is false. 588 5892019-11-07 590 - 2.6.0 591 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 592 5932019-11-07 594 - 2.5.2 595 - [BUGFIX] argument order to gQUIC client constructor. Regression 596 introduced in 2.5.0. 597 - [BUGFIX] split buffered packet error recovery: destroy the correct 598 packet. 599 6002019-11-04 601 - 2.5.1 602 - [BUGFIX] Fix double-free when emptying a packet number space. 603 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 604 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 605 verneg packets (regression introduced in 2.5.0). 606 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 607 - [OPTIMIZATION] http_server: compile regexes only once. 608 6092019-10-31 610 - 2.5.0 611 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 612 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 613 - [BUGFIX] Don't evict streams from priority iterator if there is 614 only one queue. 615 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 616 - Use ls-qpack v0.10.7. 617 6182019-10-24 619 - 2.4.10 620 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 621 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 622 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 623 values are not unique). 624 - [BUGFIX] Always set the idle alarm in IETF connection so that it 625 can time out. 626 - Use ls-qpack v0.10.6, as it silences some warnings. 627 6282019-10-21 629 - 2.4.8 630 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 631 6322019-10-15 633 - 2.4.7 634 - Add echo client and server to the distibution. 635 - Add MD5 client and server to the distibution. 636 - Fix http_client: check command-line arguments better, prevent crash. 637 - Fix IETF conn: can_write_ack() should only care about APP PNS. 638 - Client: delay stream creation until handshake succeds. 639 - Reset HTTP stream whose write end is closed prematurely. 640 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 641 - Log reason why engine is tickable. 642 6432019-10-11 644 - 2.4.6 645 - Minor code cleanup and logging improvements. 646 - Server and client programs: include library version (e.g. 2.4.6) 647 into `server' and `user-agent' headers. 648 6492019-10-08 650 - 2.4.5 651 - [OPTIMIZATION]: flush encoder stream only when necessary. 652 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 653 - [BUGFIX] Typo in IETF conn SETTINGS writer. 654 - Use latest BoringSSL. 655 6562019-10-08 657 - 2.4.4 658 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 659 - [BUGFIX] NULL dereference when H3 frame header would be split. 660 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 661 - [BUGFIX] Allow PING frames in IETF mini conn. 662 - [BUGFIX] Mini conns: don't send any packets after receiving 663 CONNECTION_CLOSE. 664 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 665 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 666 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 667 valid stream number). 668 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 669 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 670 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 671 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 672 - Update ls-qpack to v0.10.1. 673 6742019-09-30 675 - 2.4.3 676 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 677 For example, h3-Q043. Chrome will switch to using this format at 678 some point in the future. 679 - [BUGFIX] Send correct value in max_streams_uni transport param 680 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 681 to 0xFFFFFFFF 682 6832019-09-23 684 - 2.4.2 685 - [BUGFIX] H3 framing: fix zero-byte write when space is available 686 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 687 is closed 688 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 689 - [BUGFIX] Fix use-after-free in IETF full conn 690 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 691 SSL object and crypto streams. 692 6932019-09-18 694 - 2.4.0 695 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 696 6972019-09-13 698 - 2.3.1 699 - [BUGFIX] Fix memory leaks 700 - [BUGFIX] Fix unit tests 701 7022019-09-12 703 - 2.3.0 704 - [FEATURE] BBR congestion control is on by default 705 - [BUGFIX] BBR app-limited logic 706 - [BUGFIX] Fix uninitialized warnings in IETF 707 - [BUGFIX] Update ls-qpack to v0.9.14 708 - [CLEANUP] Code cleanup 709 7102019-09-11 711 - 2.2.0 712 - [FEATURE] Server code is included in the library 713 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 714 7152019-05-13 716 - 1.21.2 717 - [OPTIMIZATION] HPACK: use history to improve compression performance 718 7192019-05-06 720 - 1.21.1 721 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 722 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 723 search static and dynamic tables. 724 7252019-04-12 726 - 1.21.0 727 - [FEATURE] Add qlog log module. 728 7292019-04-01 730 - 1.20.0 731 - [FEATURE] Add support for Q046. 732 7332019-03-19 734 - 1.19.6 735 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 736 send. ACK frames placed in packets in buffered queues (optimization 737 introduced in 1.17.15) can be preceded by an ACK frame generated later. 738 In this case, the older ACK frame should not be sent out, as Chromium- 739 based servers flags decrease in the ACK frame's Largest Observed value 740 as an error. 741 7422019-03-05 743 - 1.19.5 744 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 745 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 746 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 747 7482019-02-25 749 - 1.19.4 750 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 751 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 752 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 753 7542019-02-18 755 - 1.19.3 756 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 757 packet number encoding does not exist in Q044. This fixes a 758 regression introduced in '[BUGFIX] Buffered packets can contain 759 ACK frames' -- we need to keep QUIC version in mind when selecting 760 the longest possible packet number encoding used for the buffered 761 packet that carries the ACK. 762 - [BUGFIX] Do not increase CWND when timeout occurs. 763 - http_client: support setting handshake timeout on command line. 764 Use -o handshake_to=timeout. 765 - http_client: use -k to connect UDP socket to pick up ICMP errors. 766 - http_client: allow pathless mode, when only handshake is performed 767 without issuing any requests. This can be done by simply not 768 specifying a -p flag on the command line. 769 7702019-02-11 771 - 1.19.2 772 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 773 - [BUGFIX] Version checking in zero_rtt deserialize function. 774 7752019-02-04 776 - 1.19.1 777 - [BUGFIX] Fix Windows build. 778 7792019-02-04 780 - 1.19.0 781 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 782 information; it can be supplied to a subsequent connect() call. 783 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 784 - [BUGFIX] Resuscitate the Windows build. 785 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 786 - [BUGFIX] Buffered packets can contain ACK frames. 787 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 788 - [BUGFIX] Fix potential null dereference when realloc fails. 789 - cmake: simplify build configuration. 790 7912019-01-28 792 - 1.18.0 793 - [API Change] Can specify clock granularity in engine settings. 794 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 795 2018-04-09, it is not necessary to try to approximate the next tick 796 time in the pacer: it can use fix clock granularity specified by 797 the user. 798 - [BUGFIX] Do not tick constantly before handshake is done. 799 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 800 if we cannot allocate *more* packets, we could still be able to write 801 to one already allocated. 802 - [BUGFIX] Do not schedule pacer if there are no lost packets. 803 8042019-01-17 805 - 1.17.15 806 - [BUGFIX] http_client: make sure only one read per on_read() callback 807 is performed in the header conversion bypass (-B) mode. 808 - http_client: with -E, assign random priority when stream is created. 809 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 810 buffered packet if an ACK is queued. This reduces the number of 811 standalone ACK packets. 812 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 813 stream into an outgoing packet. This change minimizes the number of 814 buffered packets required to store several small HTTP messages by 815 virtue of allowing more than one STREAM frame from HEADERS stream in 816 the same packet. 817 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 818 causes the headers to be written to the same buffered packet queue, 819 thereby improving packet utilization, especially for small HTTP 820 messages. 821 8222019-01-16 823 - 1.17.14 824 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 825 time to download, requests per seconds, and bandwidth. See -t flag. 826 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 827 - [BUGFIX] http_client: do not display cert chain before each request. 828 Now this is only done once per connection, if the handshake is 829 successful and -a option is given. 830 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 831 stream is scheduled to be closed after on_read() callback returns, 832 close it immediately instead of waiting until the end of the tick. 833 If client creates new request from on_close() event, they will be 834 processed in the same tick instead of waiting for the next one. 835 - [BUGFIX] HEADERS stream is critical: always treat it with highest 836 priority. 837 8382019-01-10 839 - 1.17.12 840 - [FEATURE] http_client can now issue parallel requests in the context 841 of a single connection. See -w option. 842 8432019-01-03 844 - 1.17.11 845 - Fix strict aliasing warning in optimized compilation. 846 8472018-12-27 848 - 1.17.10 849 - Fix the example program to be able to use parallel connections 850 again. (See the -n argument.) 851 8522018-12-18 853 - 1.17.9 854 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 855 8562018-12-10 857 - 1.17.8 858 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 859 8602018-12-03 861 - 1.17.7 862 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 863 This prevented PING from ever being sent. 864 8652018-11-29 866 - 1.17.6 867 - Add failsafe: resume sending packets after some time 868 869 The change puts a 1-second limit on the amount of time the engine 870 will not send packets after some packets are delayed. This makes 871 the library robust in case the user does not unblock the engine 872 explicitly using lsquic_engine_send_unsent_packets() call. 873 874 - [BUGFIX] Handle corner cases in send controller when packets are 875 a) delayed or b) dropped during repackaging. 876 - [BUGFIX] Memory leak: destroy buffered packets during controller 877 cleanup. 878 8792018-11-16 880 - 1.17.3 881 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 882 8832018-10-19 884 - 1.17.2 885 - [BUGFIX] Memory leak in test_frame_rw unit test. 886 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 887 flags. (Only a problem in unit tests -- benign otherwise.) 888 8892018-10-16 890 - 1.17.0 891 - [API Change] Packet out Memory Interface (PMI) update: 892 - Split PMI pool return into pmi_release and pmi_return 893 - PMI callbacks take peer_ctx and is_ipv6 arguments 894 - [BUGFIX] Fix use-after-free when certificate is updated 895 - Silence gcc warning in optimized mode by performing useless 896 initialization 897 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 898 DEVEL_MODE 899 9002018-10-03 901 - 1.16.0 902 - [API Change] Add lsquic_conn_n_avail_streams() 903 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 904 9052018-09-27 906 - 1.15.0 907 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 908 - [BUGFIX] free uncompressed headers correctly when error occurs 909 9102018-09-12 911 - 1.14.3 912 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 913 - [BUGFIX] Drop packets that would become empty due to repackaging. 914 Packets on the scheduled queue may be marked for repackaging. 915 Frames such as ACK frame that are never resent are removed from 916 repackaged packets. We must check that the newly repackaged packet 917 would not be empty. If it would be, it is destroyed instead and 918 the next packet on the scheduled queue is used. Note that this 919 change only affects the logic to return the next packet to be sent. 920 Lost packets that are being rescheduled are already processed in 921 this fashion. 922 - Byteswap CID before logging it - this makes it match Chrome CIDs. 923 (Except Q035, which is the last little-endian GQUIC version we 924 support.) 925 9262018-09-06 927 - 1.14.0 928 - [API Change] Disable packet sending if full batch cannot be sent 929 If lsquic_packets_out_f() cannot send the whole batch, disable 930 packet sending until lsquic_engine_send_unsent_packets() is called. 931 - [BUGFIX] Handle case when STREAM frame does not fit. 932 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 933 may send overlapping STREAM frames even if using versions older 934 than Q043. 935 - Custom header set fixes: 936 - set "FIN reached" flag when custom header with FIN flag is 937 claimed; 938 - do not return custom header set for a reset stream. 939 9402018-08-27 941 942 - 1.13.0 943 - [FEATURE, API Change] Add ability to create custom header set 944 objects via callbacks. This avoids reading and re-parsing 945 headers from the stream. 946 9472018-08-27 948 949 - 1.12.4 950 - Fix memory leak when engine is destroyed 951 - Fix memory leak in http_client 952 - Fix gcc warning in unit tests 953 9542018-08-22 955 956 - 1.12.3 957 - [BUGFIX] Fix duplicate STREAM frame detection 958 9592018-08-20 960 961 - 1.12.2 962 - [BUGFIX] Update count of scheduled bytes when adjusting size of 963 an already-scheduled packet. 964 - Emit info instead of warning messages when stream is used in 965 unexpected ways. 966 9672018-08-17 968 969 - 1.12.0 970 - [FEATURE, API Change] Add support for certificate verification 971 9722018-08-16 973 974 - 1.11.1 975 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 976 9772018-08-15 978 979 - 1.11.0 980 - [FEATURE] Add support for Q044. 981 9822018-08-09 983 984 - 1.10.2 985 - [BUGFIX] Don't go over limit when creating delayed streams 986 9872018-07-10 988 989 - 1.10.1 990 - [BUGFIX] process connections after each batch of packets is read 991 This avoids a problem of accumulating a very large list of packets 992 (possible when speeds are high and socket's receive buffer is large) 993 and processing it all at once. 994 - If glibc is older than 2.17, link with rt. This is necessary for 995 clock_getres(2). 996 - Add version macros to lsquic.h; remove unnecessary includes. 997 9982018-06-13 999 1000 - [BUGFIX] allow multiple parallel connections by default 1001 1002 Use the original method of tracking connections by CIDs by default. 1003 If zero-sized CID support is turned on, connections are tracked by 1004 the address. A new connection is not created if another connection 1005 is using the same network address 1006 10072018-05-30 1008 1009 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 1010 10112018-05-24 1012 1013 - Close connection properly when packet encryption fails 1014 10152018-05-23 1016 1017 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 1018 10192018-05-21 1020 1021 - [API Change] Add optional callback to call when handshake is done 1022 - [API Change, BUGFIX] After send failure, wait until transport available 1023 10242018-05-18 1025 1026 - [API] Expose useful lsquic_ver2str[] in lsquic.h 1027 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 1028 - Improve checks of number of incoming streams limit and associated 1029 error reporting. 1030 - [BUGFIX] Command-line option `-6` now works correctly. 1031 10322018-05-16 1033 1034 - [FEATURE] DNS resolution 1035 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 1036 - http_client: fix priority range generated by -E flag 1037 10382018-05-09 1039 1040 - [FEATURE] Add support for Q043. 1041 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 1042 - Fix typo in debug message. 1043 - Fix code indentation. 1044 - Add /* fallthru */ comment to stop newer gcc from complaining. 1045 - Logger: fix compilation of optimized Windows build. 1046 10472018-05-04 1048 1049 - [FEATURE] Add support for Q042. 1050 - Remove comment: MSPC is obsolete (no code changes) 1051 - Prog: use lsquic_str2ver() when processing -o version flag 1052 - Remove unused CTIM and SRBF transport parameters 1053 - Disable QUIC versions Q037 and Q038 by default 1054 - Fix Windows compilation by including compat header file in 1055 lshpack.c 1056 - Address warnings produced by newer versions of gcc 1057 - Future-proof: turn off -Werror 1058 10592018-05-02 1060 1061 - [BUGFIX] Make lsquic_conn_quic_version() available 1062 - Switch to using ls-hpack 1.1 1063 - [BUGFIX] Do not ignore stream resets after receiving FIN 1064 10652018-04-27 1066 1067 - HPACK: do not allow header block to end with table size update. 1068 10692018-04-25 1070 1071 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 1072 packets. 1073 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 1074 - [BUGFIX] connections with blocked scheduled packets are not tickable 1075 for sending. 1076 - [BUGFIX] Conn is tickable if it wants to send a connection-level 1077 frame. 1078 10792018-04-23 1080 1081 - Fix busy loop: tickable must make progress. When connection is 1082 self-reporting as tickable, it must make progress when ticked. There 1083 are two issues: 1084 1. If there are buffered packets, the connection is only tickable if 1085 they can be sent out. 1086 2. A connection is tickable if there are streams on the servicing 1087 queue. When the tick occurs, we must service the stream 1088 independent of whether any packets are sent. 1089 - Fix assertion in pacer which can be incorrect under some 1090 conditions. 1091 - cmake: do not turn on address sanitizer if in Travis. 1092 10932018-04-20 1094 1095 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 1096 changes. 1097 10982018-04-19 1099 1100 - [BUGFIX] Add connection to Tickable Queue on stream write 1101 - cmake: use MSVC variable instead of trying to detect 1102 - engine: improve connection incref/decref logging 1103 - stream: don't ignore errors that may occur on triggered flush 1104 - connection: remove obsolete method 1105 - engine: indicate connection as tickable if previous call went 1106 over threshold 1107 11082018-04-09 1109 1110 [API Change, OPTIMIZATION] Only process conns that need to be processed 1111 1112 The API is simplified: do not expose the user code to several 1113 queues. A "connection queue" is now an internal concept. 1114 The user processes connections using the single function 1115 lsquic_engine_process_conns(). When this function is called, 1116 only those connections are processed that need to be processed. 1117 A connection needs to be processed when: 1118 1119 1. New incoming packets have been fed to the connection. 1120 2. User wants to read from a stream that is readable. 1121 3. User wants to write to a stream that is writeable. 1122 4. There are buffered packets that can be sent out. (This 1123 means that the user wrote to a stream outside of the 1124 lsquic library callback.) 1125 5. A control frame (such as BLOCKED) needs to be sent out. 1126 6. A stream needs to be serviced or delayed stream needs to 1127 be created. 1128 7. An alarm rings. 1129 8. Pacer timer expires. 1130 1131 To achieve this, the library places the connections into two 1132 priority queues (min heaps): 1133 1134 1. Tickable Queue; and 1135 2. Advisory Tick Time queue (ATTQ). 1136 1137 Each time lsquic_engine_process_conns() is called, the Tickable 1138 Queue is emptied. After the connections have been ticked, they are 1139 queried again: if a connection is not being closed, it is placed 1140 either in the Tickable Queue if it is ready to be ticked again or 1141 it is placed in the Advisory Tick Time Queue. It is assumed that 1142 a connection always has at least one timer set (the idle alarm). 1143 1144 The connections in the Tickable Queue are arranged in the least 1145 recently ticked order. This lets connections that have been quiet 1146 longer to get their packets scheduled first. 1147 1148 This change means that the library no longer needs to be ticked 1149 periodically. The user code can query the library when is the 1150 next tick event and schedule it exactly. When connections are 1151 processed, only the tickable connections are processed, not *all* 1152 the connections. When there are no tick events, it means that no 1153 timer event is necessary -- only the file descriptor READ event 1154 is active. 1155 1156 The following are improvements and simplifications that have 1157 been triggered: 1158 1159 - Queue of connections with incoming packets is gone. 1160 - "Pending Read/Write Events" Queue is gone (along with its 1161 history and progress checks). This queue has become the 1162 Tickable Queue. 1163 - The connection hash no longer needs to track the connection 1164 insertion order. 1165 11662018-04-02 1167 1168 - [FEATURE] Windows support 1169 1170 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 1171 11722018-03-09 1173 1174 - [OPTIMIZATION] Merge series of ACKs if possible 1175 1176 Parsed single-range ACK frames (that is the majority of frames) are 1177 saved in the connection and their processing is deferred until the 1178 connection is ticked. If several ACKs come in a series between 1179 adjacent ticks, we check whether the latest ACK is a strict superset 1180 of the saved ACK. If it is, the older ACK is not processed. 1181 1182 If ACK frames can be merged, they are merged and only one of them is 1183 either processed or saved. 1184 1185 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 1186 1187 Never generate a gap in the sent packet number sequence. This reduces 1188 the send history to a single number instead of potentially a series of 1189 packet ranges and thereby speeds up ACK verification. 1190 1191 By default, detecting a gap in the send history is not fatal: only a 1192 single warning is generated per connection. The connection can continue 1193 to operate even if the ACK verification code is not able to detect some 1194 inconsistencies. 1195 1196 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 1197 1198 The first part of struct lsquic_send_ctl now consists of members that 1199 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 1200 which is the normal case). To speed up reads and writes, we no longer 1201 try to save space by using 8- and 16-bit integers. Use regular integer 1202 width for everything. 1203 1204 - [OPTIMIZATION] Cache size of sent packet. 1205 1206 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 1207 1208 Instead of parsing our own ACK frames when packet has been acked, 1209 use the value saved in the packet_out structure when the ACK frame 1210 was generated. 1211 1212 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 1213 1214 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 1215 1216 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 1217 1218 - Fix: http_client: fix -I flag; switch assert() to abort() 1219 12202018-02-26 1221 - [API Change] lsquic_engine_connect() returns pointer to the connection 1222 object. 1223 - [API Change] Add lsquic_conn_get_engine() to get engine object from 1224 connection object. 1225 - [API Change] Add lsquic_conn_status() to query connection status. 1226 - [API Change] Add add lsquic_conn_set_ctx(). 1227 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 1228 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 1229 arrives. 1230 - [OPTIMIZATION] Do not compile expensive send controller sanity check 1231 by default. 1232 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 1233 - [OPTIMIZATION] Only make squeeze function call if necessary. 1234 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 1235 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 1236 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 1237 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 1238 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 1239 ordered. 1240 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 1241 - Fix: reset incoming streams that arrive after we send GOAWAY. 1242 - Fix: delay client on_new_conn() call until connection is fully set up. 1243 - Fixes to buffered packets logic: splitting, STREAM frame elision. 1244 - Fix: do not dispatch on_write callback if no packets are available. 1245 - Fix WINDOW_UPDATE send and resend logic. 1246 - Fix STREAM frame extension code. 1247 - Fix: Drop unflushed data when stream is reset. 1248 - Switch to tracking CWND using bytes rather than packets. 1249 - Fix TCP friendly adjustment in cubic. 1250 - Fix: do not generate invalid STOP_WAITING frames during high packet 1251 loss. 1252 - Pacer fixes. 1253 12542017-12-18 1255 1256 - Fix: better follow cubic curve after idle period 1257 - Fix: add missing parts to outgoing packet splitting code 1258 - Fix: compilation using gcc 4.8.4 1259 12602017-10-31 1261 1262 - Add APIs.txt -- describes LSQUIC APIs 1263 12642017-10-31 1265 1266 - [API Change] Sendfile-like functionality is gone. The stream no 1267 longer opens files and deals with file descriptors. (Among other 1268 things, this makes the code more portable.) Three writing functions 1269 are provided: 1270 1271 lsquic_stream_write 1272 lsquic_stream_writev 1273 lsquic_stream_writef (NEW) 1274 1275 lsquic_stream_writef() is given an abstract reader that has function 1276 pointers for size() and read() functions which the user can implement. 1277 This is the most flexible way. lsquic_stream_write() and 1278 lsquic_stream_writev() are now both implemented as wrappers around 1279 lsquic_stream_writef(). 1280 1281 - [OPTIMIZATION] When writing to stream, be it within or without the 1282 on_write() callback, place data directly into packet buffer, 1283 bypassing auxiliary data structures. This reduces amount of memory 1284 required, for the amount of data that can be written is limited 1285 by the congestion window. 1286 1287 To support writes outside the on_write() callback, we keep N 1288 outgoing packet buffers per connection which can be written to 1289 by any stream. One half of these are reserved for the highest 1290 priority stream(s), the other half for all other streams. This way, 1291 low-priority streams cannot write instead of high-priority streams 1292 and, on the other hand, low-priority streams get a chance to send 1293 their packets out. 1294 1295 The algorithm is as follows: 1296 1297 - When user writes to stream outside of the callback: 1298 - If this is the highest priority stream, place it onto the 1299 reserved N/2 queue or fail. 1300 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 1301 rather than N/2, allowing high-priority streams to write as 1302 much as can be sent.) 1303 - If the stream is not the highest priority, try to place the 1304 data onto the reserved N/2 queue or fail. 1305 - When tick occurs *and* more packets can be scheduled: 1306 - Transfer packets from the high N/2 queue to the scheduled 1307 queue. 1308 - If more scheduling is allowed: 1309 - Call on_write callbacks for highest-priority streams, 1310 placing resulting packets directly onto the scheduled queue. 1311 - If more scheduling is allowed: 1312 - Transfer packets from the low N/2 queue to the scheduled 1313 queue. 1314 - If more scheduling is allowed: 1315 - Call on_write callbacks for non-highest-priority streams, 1316 placing resulting packets directly onto the scheduled queue 1317 1318 The number N is currently 20, but it could be varied based on 1319 resource usage. 1320 1321 - If stream is created due to incoming headers, make headers readable 1322 from on_new. 1323 1324 - Outgoing packets are no longer marked non-writeable to prevent placing 1325 more than one STREAM frame from the same stream into a single packet. 1326 This property is maintained via code flow and an explicit check. 1327 Packets for stream data are allocated using a special function. 1328 1329 - STREAM frame elision is cheaper, as we only perform it if a reset 1330 stream has outgoing packets referencing it. 1331 1332 - lsquic_packet_out_t is smaller, as stream_rec elements are now 1333 inside a union. 1334 13352017-10-12 1336 1337 - Do not send RST_STREAM when stream is closed for reading 1338 - Raise maximum header size from 4K to 64K 1339 - Check header name and value lengths against maximum imposed by HPACK 1340 - Fix NULL dereference in stream flow controller 1341 13422017-10-09 1343 1344 - Hide handshake implementation behind a set of function pointers 1345 - Use monotonically increasing clock 1346 - Make sure that retx delay is not larger than the max of 60 seconds 1347 13482017-09-29 1349 1350 - A few fixes to code and README 1351 13522017-09-28 1353 1354 - Add support for Q041; drop support for Q040 1355 13562017-09-27 1357 1358 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 1359 13602017-09-26 1361 1362 - Add support for Mac OS 1363 - Add support for Raspberry Pi 1364 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 1365 13662017-09-22 1367 1368 - Initial release 1369