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