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