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