CHANGELOG revision a74702c6
12022-05-06 2 - 3.1.0 3 - Better handling of transport parameter max_table_capcity < 32 4 - Fix NULL pointer dereference in handshake 5 - Fix 0-RTT transport parameter validation (issue #367) 6 - Remove unnecessary debug log to avoid NULL pointer dereference 7 - Tick connection on datagram write (pull #314) 8 - Do not dispatch write event for FINISHED stream 9 - Tweaks for CMake configuration (pull #354 #369 #370 #373 #374) 10 - Update ls-qpack to 2.3.0 11 122022-01-10 13 - 3.0.4 14 - Fix overly strict assert() 15 - Do not reset path MTU due to three lost_mtu_probe 16 - Fix handshake failure due to too many realy data 17 - Better build support for Windows platform 18 - Update ls-qpack to 2.2.3 19 202021-09-30 21 - 3.0.3 22 - Generate ACK for DATAGRAM frame while avoid RETX (issue #312 #325). 23 - Fix BBR end of startup phase detection (issue #328). 24 - Fix HTTP/3 v1 retry handling (issue #332) 25 - Fix memory leak when reset dcid (issue #333) 26 - Fix double decrement for ifc_active_cids_count (#334) 27 - Fix uninitialized value in frame_reader/frame_writer (#316) 28 - Remove a few overly strict asserts. 29 302021-06-16 31 - 3.0.2 32 - Do not timeout connection if peer sends PING frames. 33 - Do not assert for MTU probe packet when cancel a path. 34 352021-06-16 36 - 3.0.1 37 - Only force TICK_CLOSE flag after received CONNECTION_CLOSE frame. (issue #292 #281) 38 - Avoid mismatch in packet parsing. (issue #262) 39 - Remove unnecessary shi_delete call. 40 412021-06-02 42 - 3.0.0 43 - Enable HTTP/3 v1 by default, drop draft 34. 44 - Prevent connection timeout when client does not send PING frame. 45 - Close connection ASAP after recieve CONNECTION_CLOSE (issue #284) 46 - Do not assert() when decode a trailer. 47 - Properly handle GOAWAY frame, do not close the last acknowledged stream. 48 492021-04-20 50 - 2.30.2 51 - Update ls-hpack to 2.3.0 to address dynamic table size limit (issue #260). 52 532021-04-16 54 - 2.30.1 55 - Fixed an unintialized data member for handling pushed headers. 56 - Added a new status code for version negotiation failure. 57 - Fixed a few compliance issues found by h3spec. 58 - Addressed high CPU usage when transport cannot send pending packets. 59 602021-04-12 61 - 2.30.0 62 - Added support for sending/receiving multiple headers to address the 63 case related to "100 continue" header handling. 64 - Addressed high CPU usage for a GOAWAY connection before sending 65 CONNECTION_CLOSE. 66 - Addressed SIGFPE due to zero pacing rate. (ISSUE #254). 67 - Fixed a minor issue related to multi-paths. 68 692021-03-31 70 - 2.29.6 71 - Documentation: describe lsquic internals ("guts"). 72 - Two more fixes to compliance issues found by h3spec. 73 - Truncate, don't abort, SCIDs larger than 16 bytes (PR #244). 74 - Several small internal improvements and space optimizations. 75 762021-03-17 77 - 2.29.5 78 - Fix a few issues detected by h3spec for better compliance with HTTP/3 79 standard. 80 812021-03-08 82 - 2.29.4 83 - [BUGFIX] Infinite loop in stream: returned HQ frame can be at any 84 point on the list. 85 - [BUGFIX] Fail push promise immediately if STREAM_NOPUSH is set. 86 872021-03-03 88 - 2.29.3 89 - [BUGFIX] Do not send RESET_STREAM if writing to stream is already 90 finished. 91 - perf_client: wait for all ACKs before exiting. 92 - Improve how generated RESET_STREAM is logged. 93 - Fix compilation in different combos of adv_tick/conn_stats flags. 94 - Move qpack warning disablement into src/liblsquic/CMakeLists.txt. 95 962021-02-23 97 - 2.29.2 98 - Fix regression in gQUIC server: bug #234. 99 1002021-02-18 101 - 2.29.1 102 - Make it possible to build the library and unit tests without 103 libevent. 104 - Build all command-line utilities in bin/ 105 - Add perf_client and perf_server command-line utilities to test 106 performance according to the "perf" protocol. 107 1082021-02-10 109 - 2.29.0 110 - [FEATURE] QUIC and HTTP/3 Internet Draft 34 support and v1 support. 111 The latter is turned off by default. 112 - Drop support for ID-28 and ID-32. 113 - [BUGFIX] IETF QUIC mini conn receive history (trechist): allow 114 unlimited inserts by dropping smallest elements. 115 - [BUGFIX] gQUIC: set STTL to correct value, issue #226. 116 - [BUGFIX] Account for poison packet gap when MTU probe was too large. 117 1182021-02-03 119 - 2.28.0 120 - [API] lsquic_ssl_sess_to_resume_info() is the new way to get 121 session info. 122 - [API] Add user pointer to ea_generate_scid callback. 123 - [API] Add lsquic_dcid_from_packet() -- a fast function to parse 124 out DCID. 125 - [API] Add es_max_batch_size to control outgoing packet batch size. 126 - [BUGFIX] Disallow sending of header while promise is being written. 127 - [BUGFIX] Flush stream when buffered bytes exhaust stream cap. 128 - [BUGFIX] Deactivate HQ frame if writing push promise fails. 129 - Perform sanity check on peer transport parameters and fail the 130 handshake if some flow control limits are too low. This can be 131 turned off, see es_check_tp_sanity. 132 - http_server: fix how requests are read in "hq" mode. 133 1342021-01-27 135 - 2.27.6 136 - [BUGFIX] Replace dispatch read/write events assertion with a check. 137 - [BUGFIX] gQUIC connection close: there is no HEADERS stream without 138 HTTP flag, see issue #220. 139 - http_client, http_server: add hq protocol support and other flags 140 for use with QUIC Interop Runner. 141 - Fix: use IP_PMTUDISC_PROBE (not IP_PMTUDISC_DO) on Linux to set 142 Don't-Fragment flag on outgoing packets. 143 - Fix send_packets_one_by_one on Windows platform when sending 144 multiple iovs, see issue #218. 145 - Exit echo_client on Windows immediately, see issue #219. 146 1472021-01-18 148 - 2.27.5 149 - [BUGFIX] Assertion in send controller when path validation fails. 150 - [BUGFIX] Assertion in BBR when sending out-of-order packets is 151 detected. 152 - [BUGFIX] Drop overflow receive history ranges when cloning. 153 - Log correct size of the incoming packet. 154 - Fix internal stream function. 155 1562021-01-13 157 - 2.27.4 158 - [API] Add lsquic_conn_get_sni(), fixes issue #203. 159 1602021-01-08 161 - 2.27.3 162 - [BUGFIX] gQUIC: do not destroy critical streams when connection is 163 closed. See issue #201. 164 - [BUGFIX] Drop #if LSQUIC_CONN_STATS from lsquic.h. See issue #211. 165 - [BUGFIX] Challenge cancellation when path validation fails. 166 - [BUGFIX] Do not send FIN if RST is scheduled to be sent on a stream. 167 - [BUGFIX] gQUIC's is_tickable() when connection is closing. 168 - [BUGFIX] Q050 processing of GOAWAY frames. 169 1702021-01-06 171 - 2.27.2 172 - [BUGFIX] Memory corruption in receive history copy-ranges function. 173 1742021-01-06 175 - 2.27.1 176 - [API] New knob to set outgoing packet batch size. 177 - Aborted connection now become tickable immediately. 178 - Abort connection when HTTP/3 frame cannot be opened (can only happen 179 when malloc fails). 180 1812020-12-31 182 - 2.27.0 183 - [API] Remove keylog callbacks. See issue #188. 184 - Add a bit more ALPN logging. 185 1862020-12-23 187 - 2.26.2 188 - [BUGFIX] Do not drop incoming data when STOP_SENDING is received. 189 - [BUGFIX] Receipt of STOP_SENDING should not cause read-reset. 190 - [BUGFIX] Allow stream writes after receiving RESET. 191 - [BUGFIX] Typo in stream: ANDing enum with wrong flag. 192 - [BUGFIX] Reset elision: do not use zero as special stream ID value, 193 for zero is a valid stream ID in IETF QUIC. 194 - [API] Add optional on_conncloseframe_received() callback. 195 - Use zero error code in RESET stream sent in response to STOP_SENDING. 196 1972020-12-17 198 - 2.26.1 199 - [BUGFIX] Migration corner cases: drop or pad over path challenge 200 and response frames when necessary. 201 - Fix stream unit test. 202 2032020-12-09 204 - 2.26.0 205 - [OPTIMIZATION] Adjust packet reordering threshold when spurious losses 206 are detected. 207 - [API] Pass pointer to local sockaddr to ea_get_ssl_ctx() callback. 208 2092020-12-04 210 - 2.25.0 211 - [API, FEATURE] Add es_delay_onclose option to delay on_close until all 212 data is ACKed. Use new function lsquic_stream_has_unacked_data() to 213 learn whether peer acknowledged all data written to stream. 214 - [API] Add optional on_reset() stream callback to get notifications 215 when RESET or STOP_SENDING frames are received. 216 - [BUGFIX] On STOP_SENDING, make conn tickable is _writeable_, not 217 readable. 218 2192020-11-24 220 - 2.24.5 221 - [FEATURE] Improve Delayed ACKs extension and turn it on by default. 222 - Limit receive history to a finite amount of memory. 223 2242020-11-18 225 - 2.24.4 226 - [BUGFIX] Check whether ECN counts are set in ACK struct before using 227 them. 228 - [BUGFIX] Calculate TLP timer correctly when only one packet is in 229 flight. 230 - [BUGFIX] Min RTO delay is 200 milliseconds, not 1 second. 231 - [BUGFIX] Memory leak in QPACK decoder handler: discard hset when 232 necessary. 233 - Allow retired and drained CIDs to be reused after a timeout. 234 2352020-11-11 236 - 2.24.3 237 - [BUGFIX] Get rough RTT estimate on receipt of Handshake packet. 238 This prevents BBR on the client from miscalculating pacing rate, 239 slowing down sending of ACK packets. 240 - [BUGFIX] Packets sent during handshake are app-limited. 241 - [BUGFIX] Bandwidth sampler starts in app-limited mode. 242 - [BUGFIX] Memory leak: free QPACK handler context in stream dtor. 243 - Logging improvements. 244 2452020-11-05 246 - 2.24.2 247 - [BUGFIX] Allow peer to migrate when its SCID is zero-length. 248 - [BUGFIX] PADDING size calculation: only one Short packet can be 249 coalesced. (This should have been part of the fix in 2.24.1). 250 - Abort connect if received NEW_CONNECTION_ID but current DCID is 251 zero-length. 252 - Improve log messages 253 2542020-11-04 255 - 2.24.1 256 - [API] Allow use of ea_get_ssl_ctx() on the client (optional). PR #186. 257 - [BUGFIX] Expand datagram with ack-eliciting Initial to 1200 bytes 258 after connection promotion. 259 - [BUGFIX] Discard CRYPTO frames from lower encryption levels after 260 connection promotion. 261 - [BUGFIX] Cancel path response if path could not be initialized. 262 2632020-10-28 264 - 2.24.0 265 - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support. Drop ID-30 266 and ID-31 support. 267 - [BUGFIX] Divide-by-zero in newly enabled conn stats code when no 268 packets were sent. 269 - [BUGFIX] Memory leak in gQUIC client when server hello cannot be 270 parsed. 271 - [BUGFIX] Server Initial packet size calculation. 272 - Log user-agent and CONN_CLOSE reason when peer reports error. 273 - Example programs: Specify ALPN for echo and md5 clients and servers 274 (issue #184). 275 - Example programs: Don't add "QUIC_" prefix to lines in keylog file 276 (issue #185). 277 - http_server: Fix fd leak in preadv mode; fix preadv() usage when 278 reading from disk. 279 2802020-10-22 281 - 2.23.3 282 - [BUGFIX] Update packetization threshold when writing to stream 283 after packet size is reduced following an RTO. 284 2852020-10-21 286 - 2.23.2 287 - Add QPACK stats collection and experimentation mode, see the new 288 es_qpack_experiment setting. 289 - Log busy connection stats every second using the new "conn-stats" 290 log module. 291 - Log about skipping only once. 292 - Update HTTP/3 greased frame type formula. 293 - Use ls-qpack v2.2.1. 294 2952020-10-13 296 - 2.23.1 297 - [FEATURE] IETF Client 0-RTT support. 298 - [BUGFIX] Do not schedule MTU probe on first tick. 299 - [BUGFIX] Parsing DATAGRAM frame. 300 - [BUGFIX] If push promise fails, do not invoke hset destructor. 301 - [BUGFIX] Client: When connections are IDed by port number, check DCID. 302 Fixes issue #176. 303 - [BUGFIX] Regression introduced in 2.22.0: use correct number of 304 PNSs for IETF mini conn during promotion. 305 - Revert the 2.22.1 lsquic_is_valid_hs_packet change. All that was 306 necessary is a change to the way we call it in lsquic_engine. No 307 change to the function itself is required. 308 3092020-10-08 310 - 2.22.1 311 - [BUGFIX] Function that checks validity of handshake packets. 312 3132020-10-07 314 - 2.22.0 315 - [FEATURE] Extensible HTTP Priorities (HTTP/3 only). 316 - [FEATURE] Add conn context to packet-out memory interface (PR #175). 317 - [BUGFIX] gQUIC proof generation: allocate buffer big enough for 318 signature (issue #173). 319 - [BUGFIX] Make library thread-safe: drop use of global variables 320 (issue #133, issue #167). 321 - [BUGFIX] Deactivate only *recent* HQ frame, not any HQ frame. 322 - [BUGFIX] gQUIC server: associate compressed cert with SSL_CTX, 323 instead of keeping them in a separate hash, potentially leading 324 to mismatches. 325 - [BUGFIX] Stream data discard infinite loop: break on FIN. 326 - cmake: add install target via -DCMAKE_INSTALL_PREFIX (PR #171). 327 - Support randomized packet number to begin a connection. 328 - Mini and full IETF connection size optimization. 329 - http_client: specify HTTP priorities based on stream conditions. 330 3312020-09-29 332 - 2.21.0 333 - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support. 334 - [API] Let user generate Souce Connection IDs. 335 - [FEATURE] Allow building lsquic as shared library. 336 - [OPTIMIZATION] Receive history: use a single contiguous memory 337 block for everything. 338 - Deprecate QUIC versions ID-27 and ID-30. 339 3402020-09-25 341 - 2.20.2 342 - [BUGFIX] Memory leak: free pushed promise when refcnt is zero. 343 - [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets. 344 3452020-09-23 346 - 2.20.1 347 - [BUGFIX] Typo in new "validate peer addr by DCID" code. It is 348 a benign bug (works either way), but better to fix it. 349 - Simplify Stream Priority Iterator (SPI). 350 - Minor documentation updates. 351 3522020-09-15 353 - 2.20.0 354 - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support. 355 - [FEATURE] Unreliable Datagram Extension support. 356 - [FEATURE] Adaptive congestion controller. 357 - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams. 358 - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO 359 data comes in. 360 - [BUGFIX] Spin bit is now strictly per path; value is reset on 361 DCID change. 362 - [BUGFIX] Check that max value of max_streams_uni and 363 max_streams_bidi TPs is 2^60. 364 - [BUGFIX] Close IETF mini conn immediately if crypto session 365 cannot be initialized. 366 - Deprecate ID-28 (no browser uses it): it's no longer in the 367 default versions list. 368 - New programs duck_server and duck_client that implement the 369 experimental siduck-00 protocol. They quack! 370 - IETF crypto streams: don't limit ourselves from sending. 371 - Command-line programs: turn off QL loss bits if -G is used, as 372 Wireshark cannot decrypt QUIC packets when this extension is used. 373 - Turn all h3 framing unit tests back on. 374 - Fix malo initialization when compiled in no-pool mode. 375 3762020-09-08 377 - 2.19.10 378 - [FEATURE] Add lsquic_stream_pwritev(). This function allows one to 379 reduce the number of system calls required to read a file from disk 380 by using lsquic_stream_pwritev() together with preadv(2). 381 - [BUGFIX] When stream is reset, it is writeable -- let user collect 382 the error. 383 - [BUGFIX] Calculate correct conn flow control if reading ends early. 384 - [BUGFIX] Remove stream from read and write queues on internal 385 shutdown. This is a regression introduced in 2.19.7. 386 - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation. 387 - Turn off mini conn history when compiling with Visual Studio; this 388 allows the project to compile on Windows again. 389 - http_client: Add -3 flag to stop reading from streams early; code 390 cleanup. 391 - Don't use -Werror. 392 3932020-09-02 394 - 2.19.8 395 - [FEATURE] Update the timestamp extension to latest version. 396 - [FEATURE] Cope with appearance of ECN blackholes. 397 - [OPTIMIZATION] return packno offset and size when header is generated. 398 - [BUGFIX] ignore old ACK frames in mini conns. 399 - [BUGFIX] Mark initial server path as initialized. 400 - [BUGFIX] Do not merge ACK if ECN counts do not match. 401 - Turn incoming packet number history in mini conn back on. 402 - Record mini conn event history again when compiled in debug mode. 403 - IETF mini conn: log when ACK is queued. 404 - Clean up and refactor code in several places. 405 4062020-08-26 407 - 2.19.7 408 - Handle ECT-CE event: issue a loss event. 409 - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE. 410 - Use Max Push ID in GOAWAY frame to cancel promises. 411 - Add support for HTTP/3 CANCEL_PUSH frame. 412 - lsquic_stream_is_pushed: streams without headers are never pushed. 413 - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down. 414 - Improve logic whether to generate CONNECTION_CLOSE. 415 4162020-08-20 417 - 2.19.6 418 - Don't process incoming ECN marks if ECN is not enabled. 419 - Schedule ACK when incoming packet is marked with CE. 420 4212020-08-11 422 - 2.19.5 423 - [BUGFIX] Generate frame record when moving an ACK from one buffered 424 packet to another. 425 4262020-08-06 427 - 2.19.4 428 - [BUGFIX] Do not return an oversize MTU probe to connection twice. 429 - [FEATURE] Delayed Acks updated to latest draft. Still experimental. 430 - Minor code cleanup in IETF full connection. 431 4322020-08-04 433 - 2.19.3 434 - [BUGFIX] Regression in 2.19.1 that breaks Q050 435 4362020-07-30 437 - 2.19.2 438 - [BUGFIX] Do not reduce PLPMTU size by network overhead. 439 - [BUGFIX] Windows build. 440 4412020-07-29 442 - 2.19.1 443 - [FEATURE] DPLPMTUD support. IETF connections now search for the 444 maximum packet size, improving throughput. 445 - [DEBUG] Record event in stream history when on_close() is called 446 in dtor. 447 4482020-07-22 449 - 2.18.2 450 - [BUGFIX] Send prediction: lone path challenges do not get squeezed out 451 - Fix crash in http_client: now -K and -B can be used simultaneously 452 4532020-07-14 454 - 2.18.1 455 - [FEATURE] Implement the "QUIC bit grease" extension. 456 - [BUGFIX] Selecting CID used for logging on client. 457 - [BUGFIX] Header protection assertion. 458 - [BUGFIX] Server: enable SSL key logging when cert lookup callback 459 is not set. 460 - Remove some dead code. 461 4622020-07-06 463 - 2.18.0 464 - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT" 465 always refers to early data, meaning a request that the server can 466 reply to in the very first return flight. A more appropriate name 467 for what we support on the client site is "session resumption," which 468 is standard TLS terminology. Later, when we add support for 0-RTT 469 (early data), we can use the 0-RTT terminology again, this time in 470 proper context. 471 - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL. 472 - [BUGFIX] Make connection tickable when it's marked as closed. 473 - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode. 474 - Several documentation fixes and improvements. 475 - Minor code cleanup. 476 4772020-06-24 478 - 2.17.2 479 - [BUGFIX] Infinite loop in stream: advance read offset when discarding 480 data. 481 - [OPTIMIZATION] Header protection: only initialize cipher once. 482 - [OPTIMIZATION] Batch header protection application. 483 4842020-06-18 485 - 2.17.1 486 - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support. 487 - [BUGFIX] Check that scheduled packets are also sendable when 488 calculating a connection's "tickable" property. 489 - [BUGFIX] Don't count scheduled packets as in-flight when pacer is 490 checked on tick. 491 - gQUIC: delay calling on_new for pushed stream until headers are 492 available. 493 - Allow nested calls to lsquic_engine_connect(). 494 4952020-06-15 496 - 2.16.3 497 - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn 498 instead of dropping them. 499 - [BUGFIX] Crash: check decrypt context before using it. This regression 500 was introduced in 2.16.2. 501 5022020-06-12 503 - 2.16.2 504 - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in 505 ClientHello. This change requires using a newer version of BoringSSL. 506 - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor. 507 - [BUGFIX] IETF QUIC client: narrow migration check to a single path. 508 - [BUGFIX] NULL dereference: set function pointers for alarm for path 509 challenges 2 and 3. 510 - [BUGFIX] HTTP/3 headers may be followed immediately by trailers. 511 - [BUGFIX] Log messages when SCID changes. 512 5132020-06-09 514 - 2.16.1 515 - [FEATURE] Use "no-progress timeout" after which connection is closed. 516 - [BUGFIX] Select new SCID when current SCID is retired. 517 - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during 518 mini/full handoff. 519 - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated. 520 - [BUGFIX] Mini conn: consider amplification when deciding to return 521 TICK_SEND. 522 - [BUGFIX] Don't double-count tag length in amplification logic. 523 - [BUGFIX] Don't squeeze out lone path challenges. 524 - [BUGFIX] Log messages dealing with scheduled packet queue squeezing. 525 - [BUGFIX] don't wipe current path if no path challenge responses 526 come back. 527 - [BUGFIX] When path is reset, don't lose path_id which is used for 528 logging. 529 - Downgrade flow control violations to info log level from warnings. 530 - Fix connection cap extra check, avoid checks in nested calls. 531 - Fix some unit tests when extra checks are enabled. 532 - Use ls-hpack 2.2.1. 533 - Turn off unconditional extra checks for IETF clients. 534 - Extra checks: don't verify sent size of hello packets. Client 535 changes DCID length and this check will fail. 536 5372020-06-03 538 - 2.16.0 539 - [API] Use lsxpack_header v206. 540 - [FEATURE] Windows supported. 541 - [BUGFIX] Fix uninitialized variable use in client (regression in 542 2.15.0). 543 - Use ls-hpack 2.2.0. 544 - Use ls-qpack 2.2.0. 545 - Sample programs: fix the way maximum number of packets is 546 calculated. 547 - Remove some dead code. 548 5492020-05-27 550 - 2.15.0 551 - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support. 552 - [BUGFIX] Ignore Retry packets after other packets are decrypted 553 successfully. 554 - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte 555 length minimum. 556 - http_client: fix and optimize lsxpack_header allocator. 557 - Drop support for Internet Draft 25. 558 5592020-05-19 560 - 2.14.8 561 - Support Android. 562 - Rerrange tree: move command-line examples into bin/ and unit 563 tests into tests/ from test/unittests/. 564 5652020-05-12 566 - 2.14.7 567 - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050. 568 - [BUGFIX] Frame reader: skip headers if target stream is closed. 569 5702020-05-06 571 - 2.14.6 572 - [BUGFIX] Fix amplification mitigation in 0-RTT case. 573 - [BUGFIX] IETF mini connection should not tickable if cannot send 574 a packet due to amplification. 575 - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2. 576 - [BUGFIX] Qlog server certificates for IETF QUIC connections. 577 - [BUGFIX] Uninitialized struct padding usage in tokgen (benign). 578 - [BUGFIX] Incorrect argument to shi_lookup() (benign). 579 5802020-04-29 581 - 2.14.5 582 - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match. 583 - [BUGFIX] Frame reader: skip headers if target stream is not found. 584 - [BUGFIX] Log message in QPACK decoder handler. 585 5862020-04-24 587 - 2.14.4 588 - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams. 589 - [BUGFIX] IETF client: set correct flags on bidirectional streams. 590 - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned 591 streams. 592 - [BUGFIX] Do not call header callbacks after stream is closed. 593 - Use ls-qpack 2.1.1 594 5952020-04-15 596 - 2.14.3 597 - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback. 598 - [BUGFIX] Use ls-hpack 2.1.1 599 - Improve stream code readability. 600 - Use ls-qpack 2.0.5 601 6022020-04-08 603 - 2.14.2 604 - [BUGFIX] Use ls-qpack 2.0.4 605 - [BUGFIX] Honor max packet size on the client and when path changes. 606 - http_server: fix prepare_decode() function. 607 6082020-04-07 609 - 2.14.1 610 - [BUGFIX] Place connections on tickable queue when sending is reenabled. 611 - [BUGFIX] A connection is tickable if it has unsent packets. 612 - [BUGFIX] Heed peer's max_packet_size transport parameter. 613 6142020-03-30 615 - 2.14.0 616 - [API] Use lsxpack_header structure to send HTTP headers. 617 - [OPTIMIZATION] nocopy's readable_bytes() function. 618 - http_server: fix typo in error message 619 - Use ls-hpack 2.1.0. 620 - Use ls-qpack 2.0.0. 621 6222020-03-23 623 - 2.13.3 624 - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked. 625 6262020-03-13 627 - 2.13.2 628 - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode(). 629 6302020-03-12 631 - 2.13.1 632 - [API] Use lsxpack_header structure to process incoming headers. 633 - [BUGFIX] Fix assertion when zero-padding Initial packet. 634 - [BUGFIX] Use idle timeout before we learn of peer's value. 635 - Use ls-hpack 2.0.1 -- has lsxpack_header changes. 636 - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not 637 used yet). 638 - Code cleanup: prefix exported functions with "lsquic_". 639 6402020-03-02 641 - 2.12.0 642 - [FEATURE] QUIC timestamps extension. 643 - [API] New: ea_alpn that is used when not in HTTP mode. 644 - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC. 645 - [BUGFIX] Benign double-free -- issue #110. 646 - [BUGFIX] Printing of transport parameters. 647 6482020-02-24 649 - 2.11.1 650 - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support. 651 - [FEATURE] Add experimental delayed ACKs extension. 652 - Drop support for Internet Draft 24. 653 - Code cleanup. 654 6552020-02-14 656 - 2.10.6 657 - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error. 658 - [BUGFIX] Send gap warning due to missing poisoned packet. 659 - Stream unit test for scenario in issue #106. 660 6612020-02-13 662 - 2.10.5 663 - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct 664 time. 665 - Refactor transport parameters module. 666 - Minor code cleanup. 667 6682020-02-11 669 - 2.10.4 670 - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received. 671 - [BUGFIX] Don't treat garbage UDP padding as library error; ignore 672 it instead. 673 - [BUGFIX] Fix compilation on FreeBSD (missing header). 674 - Code cleanup: remove unnecessary #includes. 675 6762020-01-31 677 - 2.10.3 678 - [BUGFIX] Cancel path responses and challenges on old path when 679 switching to new path 680 - Logging network path information. 681 6822020-01-30 683 - 2.10.2 684 - [BUGFIX] Do not delay ACKs for Initial and Handshake packets. 685 - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn 686 promotion. 687 - Logging improvements. 688 - http_client: discard data faster. 689 6902020-01-29 691 - 2.10.1 692 - [BUGFIX] Coalesced packets could get longer than normal packet 693 size. 694 - Add spin bit configuration option es_spin (-o spin=[01]). 695 - Disable spin bit in 1/16 of connections. 696 - Improve logging a bit. 697 6982020-01-28 699 - 2.10.0 700 - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support. 701 - [API] Drop support for ID-23. 702 - [BUGFIX] Set key phase bit on outgoing packets correctly. 703 - Code cleanup. 704 7052020-01-20 706 - 2.9.0 707 - [API] Drop support for Q039. 708 - Improve ACK-queuing logic. Send an ACK once in a while if 709 peer keeps on sending non-ack-eliciting packets. 710 - Improve Alt-Svc string: Q050 and later are not included in 711 the old-style "quic" string. 712 - Send stateless resets if connection could not be promoted. 713 - Schedule MAX_DATA if needed when DATA_BLOCKED is received. 714 - Use ls-qpack 0.11.2 -- needed for server push optimization. 715 - Code cleanup: handle some error cases, improve logging. 716 7172020-01-16 718 - 2.8.9 719 - [BUGFIX] Use ls-qpack 0.11.1 720 - [OPTIMIZATION] Generate random bytes in batches. 721 - Change loss_bits transport parameter ID to 0x1057 following 722 latest draft. 723 - Randomize period with which PINGs are sent to elicit ACKs. 724 - Some refactoring and code cleanup. 725 7262020-01-14 727 - 2.8.8 728 - [BUGFIX] Invalid read when parsing IETF transport parameters 729 (this was benign). 730 - [OPTIMIZATION] Frame bundling when using buffered packets in 731 IETF QUIC: a) flush QPACK decoder stream and b) include ACKs 732 in opportunistic fashion. 733 - Fix HTTP/3 framing unit test. 734 - Code cleanup. 735 7362020-01-09 737 - 2.8.7 738 - [BUGFIX] Initial packet size check for IETF mini conn applies to 739 UDP payload, not QUIC packet. 740 - Support old and new school loss_bits transport parameter. 741 - Use Q run length of 64 as suggested in the loss bits Draft. 742 - Undo square wave count when packet is delayed. 743 - Code cleanup; minor fixes. 744 7452020-01-06 746 - 2.8.5 747 - [HTTP3] Verify number of bytes in incoming DATA frames against 748 content-length. 749 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 750 decoder window. This addresses a potential attack whereby client 751 can cause the server to keep allocating memory. See Security 752 Considerations in the QPACK draft. 753 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 754 - [BUGFIX] Init IETF connection flow controller using correct setting. 755 - [BUGFIX] Fix unintended sign extension when removing header protection. 756 - Code cleanup and minor fixes. 757 7582019-12-30 759 - 2.8.1 760 - [FEATURE] Use occasional packet number gaps to detect optimistic 761 ACK attacks. 762 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 763 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 764 ACK frames. 765 - IETF QUIC: use RTT estimate in ack timeout calculation. 766 - IETF handshake: abort conn when unexpected errors occur. 767 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 768 - Server: enforce 1200 byte Initial minimum packet size. 769 - [CLEANUP] Remove code to disable gQUIC crypto. 770 - [CLEANUP] Remove n_timestamps from ACK info struct. 771 - Optimize driver: reuse previous ancillary message when possible. 772 7732019-12-23 774 - 2.8.0 775 - [FEATURE] Add support for Q050. 776 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 777 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 778 logging. 779 7802019-12-18 781 - 2.7.3 782 - [DEBUG] Further dedup next advisory tick messages when reason is 783 the same. 784 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 785 GitHub bug #94. 786 - Use Cubic by default again instead of BBR, as it delivers more 787 consistent performance. 788 7892019-12-11 790 - 2.7.2 791 - [BUGFIX] Send controller: update scheduled bytes when DCID length 792 changes (IETF client). 793 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 794 that we use loss chains. 795 - [PORTABILITY] Fix build on Alpine Linux. 796 - [PORTABILITY] Fix build using XCode. 797 - Client initial DCID length: use RAND_bytes() instead of rand(3). 798 - Add unit tests for connection min heap. 799 - [DEBUG] Log CID in gQUIC handshake module 800 - [DEBUG] Turn on extra checks for IETF client send controller. 801 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 802 - [DEBUG] QPACK decoder handler: log header error code. 803 8042019-12-05 805 - 2.7.1 806 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 807 ignore_init() makes an assumption that the send controller has access 808 to all outgoing packets. This change wraps a few IETF full connection 809 methods to delay calling ignore_init() until the engine returns all 810 outgoing packets that were batched. 811 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 812 This needs to be done because the value of errno may be lost on 813 some platforms. 814 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 815 - [BUGFIX] Do not cancel header block processing after failure, as 816 QPACK releases the reference in that case. 817 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 818 - Several small improvements to the test server. 819 8202019-11-27 821 - 2.7.0 822 - [API, FEATURE] Close connection immediately when ea_packets_out() 823 fails with errno != EAGAIN. The API change is that errno is now 824 examined. Make sure to set it if using something other than 825 sendmsg() to send packets. 826 - [CLEANUP] Immediate close logic in IETF full conn. 827 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 828 8292019-11-22 830 - 2.6.7 831 - [FEATURE] Implement the QL extension (offered by default). 832 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 833 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 834 - [DEBUG] Turn on debug message for next advisory tick. 835 8362019-11-20 837 - 2.6.6 838 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 839 - [BUGFIX] Truncate log messages instead of throwing them away. 840 8412019-11-15 842 - 2.6.5 843 - [BUGFIX] High priority buffered packet queue length. 844 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 845 8462019-11-12 847 - 2.6.3 848 - [BUGFIX] Close DATA frames with empty payload correctly. 849 8502019-11-11 851 - 2.6.2 852 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 853 packets. 854 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 855 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 856 connection. 857 - [BUGFIX] Client: don't send duplicate reset tokens. 858 - [BUGFIX] Remove invalid assertion in H3 framing code. 859 - Silence a warning in send ctl by restructuring switch() statement. 860 8612019-11-08 862 - 2.6.1 863 - [BUGFIX] set retry token on all resubmitted packets. 864 - Event log: log sent packet flags. In particular, this allows one 865 to see whether token was sent. 866 - Don't migrate client if es_allow_migration is false. 867 8682019-11-07 869 - 2.6.0 870 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 871 8722019-11-07 873 - 2.5.2 874 - [BUGFIX] argument order to gQUIC client constructor. Regression 875 introduced in 2.5.0. 876 - [BUGFIX] split buffered packet error recovery: destroy the correct 877 packet. 878 8792019-11-04 880 - 2.5.1 881 - [BUGFIX] Fix double-free when emptying a packet number space. 882 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 883 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 884 verneg packets (regression introduced in 2.5.0). 885 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 886 - [OPTIMIZATION] http_server: compile regexes only once. 887 8882019-10-31 889 - 2.5.0 890 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 891 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 892 - [BUGFIX] Don't evict streams from priority iterator if there is 893 only one queue. 894 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 895 - Use ls-qpack v0.10.7. 896 8972019-10-24 898 - 2.4.10 899 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 900 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 901 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 902 values are not unique). 903 - [BUGFIX] Always set the idle alarm in IETF connection so that it 904 can time out. 905 - Use ls-qpack v0.10.6, as it silences some warnings. 906 9072019-10-21 908 - 2.4.8 909 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 910 9112019-10-15 912 - 2.4.7 913 - Add echo client and server to the distibution. 914 - Add MD5 client and server to the distibution. 915 - Fix http_client: check command-line arguments better, prevent crash. 916 - Fix IETF conn: can_write_ack() should only care about APP PNS. 917 - Client: delay stream creation until handshake succeds. 918 - Reset HTTP stream whose write end is closed prematurely. 919 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 920 - Log reason why engine is tickable. 921 9222019-10-11 923 - 2.4.6 924 - Minor code cleanup and logging improvements. 925 - Server and client programs: include library version (e.g. 2.4.6) 926 into `server' and `user-agent' headers. 927 9282019-10-08 929 - 2.4.5 930 - [OPTIMIZATION]: flush encoder stream only when necessary. 931 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 932 - [BUGFIX] Typo in IETF conn SETTINGS writer. 933 - Use latest BoringSSL. 934 9352019-10-08 936 - 2.4.4 937 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 938 - [BUGFIX] NULL dereference when H3 frame header would be split. 939 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 940 - [BUGFIX] Allow PING frames in IETF mini conn. 941 - [BUGFIX] Mini conns: don't send any packets after receiving 942 CONNECTION_CLOSE. 943 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 944 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 945 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 946 valid stream number). 947 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 948 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 949 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 950 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 951 - Update ls-qpack to v0.10.1. 952 9532019-09-30 954 - 2.4.3 955 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 956 For example, h3-Q043. Chrome will switch to using this format at 957 some point in the future. 958 - [BUGFIX] Send correct value in max_streams_uni transport param 959 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 960 to 0xFFFFFFFF 961 9622019-09-23 963 - 2.4.2 964 - [BUGFIX] H3 framing: fix zero-byte write when space is available 965 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 966 is closed 967 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 968 - [BUGFIX] Fix use-after-free in IETF full conn 969 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 970 SSL object and crypto streams. 971 9722019-09-18 973 - 2.4.0 974 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 975 9762019-09-13 977 - 2.3.1 978 - [BUGFIX] Fix memory leaks 979 - [BUGFIX] Fix unit tests 980 9812019-09-12 982 - 2.3.0 983 - [FEATURE] BBR congestion control is on by default 984 - [BUGFIX] BBR app-limited logic 985 - [BUGFIX] Fix uninitialized warnings in IETF 986 - [BUGFIX] Update ls-qpack to v0.9.14 987 - [CLEANUP] Code cleanup 988 9892019-09-11 990 - 2.2.0 991 - [FEATURE] Server code is included in the library 992 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 993 9942019-05-13 995 - 1.21.2 996 - [OPTIMIZATION] HPACK: use history to improve compression performance 997 9982019-05-06 999 - 1.21.1 1000 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 1001 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 1002 search static and dynamic tables. 1003 10042019-04-12 1005 - 1.21.0 1006 - [FEATURE] Add qlog log module. 1007 10082019-04-01 1009 - 1.20.0 1010 - [FEATURE] Add support for Q046. 1011 10122019-03-19 1013 - 1.19.6 1014 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 1015 send. ACK frames placed in packets in buffered queues (optimization 1016 introduced in 1.17.15) can be preceded by an ACK frame generated later. 1017 In this case, the older ACK frame should not be sent out, as Chromium- 1018 based servers flags decrease in the ACK frame's Largest Observed value 1019 as an error. 1020 10212019-03-05 1022 - 1.19.5 1023 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 1024 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 1025 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 1026 10272019-02-25 1028 - 1.19.4 1029 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 1030 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 1031 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 1032 10332019-02-18 1034 - 1.19.3 1035 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 1036 packet number encoding does not exist in Q044. This fixes a 1037 regression introduced in '[BUGFIX] Buffered packets can contain 1038 ACK frames' -- we need to keep QUIC version in mind when selecting 1039 the longest possible packet number encoding used for the buffered 1040 packet that carries the ACK. 1041 - [BUGFIX] Do not increase CWND when timeout occurs. 1042 - http_client: support setting handshake timeout on command line. 1043 Use -o handshake_to=timeout. 1044 - http_client: use -k to connect UDP socket to pick up ICMP errors. 1045 - http_client: allow pathless mode, when only handshake is performed 1046 without issuing any requests. This can be done by simply not 1047 specifying a -p flag on the command line. 1048 10492019-02-11 1050 - 1.19.2 1051 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 1052 - [BUGFIX] Version checking in zero_rtt deserialize function. 1053 10542019-02-04 1055 - 1.19.1 1056 - [BUGFIX] Fix Windows build. 1057 10582019-02-04 1059 - 1.19.0 1060 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 1061 information; it can be supplied to a subsequent connect() call. 1062 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 1063 - [BUGFIX] Resuscitate the Windows build. 1064 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 1065 - [BUGFIX] Buffered packets can contain ACK frames. 1066 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 1067 - [BUGFIX] Fix potential null dereference when realloc fails. 1068 - cmake: simplify build configuration. 1069 10702019-01-28 1071 - 1.18.0 1072 - [API Change] Can specify clock granularity in engine settings. 1073 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 1074 2018-04-09, it is not necessary to try to approximate the next tick 1075 time in the pacer: it can use fix clock granularity specified by 1076 the user. 1077 - [BUGFIX] Do not tick constantly before handshake is done. 1078 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 1079 if we cannot allocate *more* packets, we could still be able to write 1080 to one already allocated. 1081 - [BUGFIX] Do not schedule pacer if there are no lost packets. 1082 10832019-01-17 1084 - 1.17.15 1085 - [BUGFIX] http_client: make sure only one read per on_read() callback 1086 is performed in the header conversion bypass (-B) mode. 1087 - http_client: with -E, assign random priority when stream is created. 1088 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 1089 buffered packet if an ACK is queued. This reduces the number of 1090 standalone ACK packets. 1091 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 1092 stream into an outgoing packet. This change minimizes the number of 1093 buffered packets required to store several small HTTP messages by 1094 virtue of allowing more than one STREAM frame from HEADERS stream in 1095 the same packet. 1096 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 1097 causes the headers to be written to the same buffered packet queue, 1098 thereby improving packet utilization, especially for small HTTP 1099 messages. 1100 11012019-01-16 1102 - 1.17.14 1103 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 1104 time to download, requests per seconds, and bandwidth. See -t flag. 1105 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 1106 - [BUGFIX] http_client: do not display cert chain before each request. 1107 Now this is only done once per connection, if the handshake is 1108 successful and -a option is given. 1109 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 1110 stream is scheduled to be closed after on_read() callback returns, 1111 close it immediately instead of waiting until the end of the tick. 1112 If client creates new request from on_close() event, they will be 1113 processed in the same tick instead of waiting for the next one. 1114 - [BUGFIX] HEADERS stream is critical: always treat it with highest 1115 priority. 1116 11172019-01-10 1118 - 1.17.12 1119 - [FEATURE] http_client can now issue parallel requests in the context 1120 of a single connection. See -w option. 1121 11222019-01-03 1123 - 1.17.11 1124 - Fix strict aliasing warning in optimized compilation. 1125 11262018-12-27 1127 - 1.17.10 1128 - Fix the example program to be able to use parallel connections 1129 again. (See the -n argument.) 1130 11312018-12-18 1132 - 1.17.9 1133 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 1134 11352018-12-10 1136 - 1.17.8 1137 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 1138 11392018-12-03 1140 - 1.17.7 1141 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 1142 This prevented PING from ever being sent. 1143 11442018-11-29 1145 - 1.17.6 1146 - Add failsafe: resume sending packets after some time 1147 1148 The change puts a 1-second limit on the amount of time the engine 1149 will not send packets after some packets are delayed. This makes 1150 the library robust in case the user does not unblock the engine 1151 explicitly using lsquic_engine_send_unsent_packets() call. 1152 1153 - [BUGFIX] Handle corner cases in send controller when packets are 1154 a) delayed or b) dropped during repackaging. 1155 - [BUGFIX] Memory leak: destroy buffered packets during controller 1156 cleanup. 1157 11582018-11-16 1159 - 1.17.3 1160 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 1161 11622018-10-19 1163 - 1.17.2 1164 - [BUGFIX] Memory leak in test_frame_rw unit test. 1165 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 1166 flags. (Only a problem in unit tests -- benign otherwise.) 1167 11682018-10-16 1169 - 1.17.0 1170 - [API Change] Packet out Memory Interface (PMI) update: 1171 - Split PMI pool return into pmi_release and pmi_return 1172 - PMI callbacks take peer_ctx and is_ipv6 arguments 1173 - [BUGFIX] Fix use-after-free when certificate is updated 1174 - Silence gcc warning in optimized mode by performing useless 1175 initialization 1176 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 1177 DEVEL_MODE 1178 11792018-10-03 1180 - 1.16.0 1181 - [API Change] Add lsquic_conn_n_avail_streams() 1182 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 1183 11842018-09-27 1185 - 1.15.0 1186 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 1187 - [BUGFIX] free uncompressed headers correctly when error occurs 1188 11892018-09-12 1190 - 1.14.3 1191 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 1192 - [BUGFIX] Drop packets that would become empty due to repackaging. 1193 Packets on the scheduled queue may be marked for repackaging. 1194 Frames such as ACK frame that are never resent are removed from 1195 repackaged packets. We must check that the newly repackaged packet 1196 would not be empty. If it would be, it is destroyed instead and 1197 the next packet on the scheduled queue is used. Note that this 1198 change only affects the logic to return the next packet to be sent. 1199 Lost packets that are being rescheduled are already processed in 1200 this fashion. 1201 - Byteswap CID before logging it - this makes it match Chrome CIDs. 1202 (Except Q035, which is the last little-endian GQUIC version we 1203 support.) 1204 12052018-09-06 1206 - 1.14.0 1207 - [API Change] Disable packet sending if full batch cannot be sent 1208 If lsquic_packets_out_f() cannot send the whole batch, disable 1209 packet sending until lsquic_engine_send_unsent_packets() is called. 1210 - [BUGFIX] Handle case when STREAM frame does not fit. 1211 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 1212 may send overlapping STREAM frames even if using versions older 1213 than Q043. 1214 - Custom header set fixes: 1215 - set "FIN reached" flag when custom header with FIN flag is 1216 claimed; 1217 - do not return custom header set for a reset stream. 1218 12192018-08-27 1220 1221 - 1.13.0 1222 - [FEATURE, API Change] Add ability to create custom header set 1223 objects via callbacks. This avoids reading and re-parsing 1224 headers from the stream. 1225 12262018-08-27 1227 1228 - 1.12.4 1229 - Fix memory leak when engine is destroyed 1230 - Fix memory leak in http_client 1231 - Fix gcc warning in unit tests 1232 12332018-08-22 1234 1235 - 1.12.3 1236 - [BUGFIX] Fix duplicate STREAM frame detection 1237 12382018-08-20 1239 1240 - 1.12.2 1241 - [BUGFIX] Update count of scheduled bytes when adjusting size of 1242 an already-scheduled packet. 1243 - Emit info instead of warning messages when stream is used in 1244 unexpected ways. 1245 12462018-08-17 1247 1248 - 1.12.0 1249 - [FEATURE, API Change] Add support for certificate verification 1250 12512018-08-16 1252 1253 - 1.11.1 1254 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 1255 12562018-08-15 1257 1258 - 1.11.0 1259 - [FEATURE] Add support for Q044. 1260 12612018-08-09 1262 1263 - 1.10.2 1264 - [BUGFIX] Don't go over limit when creating delayed streams 1265 12662018-07-10 1267 1268 - 1.10.1 1269 - [BUGFIX] process connections after each batch of packets is read 1270 This avoids a problem of accumulating a very large list of packets 1271 (possible when speeds are high and socket's receive buffer is large) 1272 and processing it all at once. 1273 - If glibc is older than 2.17, link with rt. This is necessary for 1274 clock_getres(2). 1275 - Add version macros to lsquic.h; remove unnecessary includes. 1276 12772018-06-13 1278 1279 - [BUGFIX] allow multiple parallel connections by default 1280 1281 Use the original method of tracking connections by CIDs by default. 1282 If zero-sized CID support is turned on, connections are tracked by 1283 the address. A new connection is not created if another connection 1284 is using the same network address 1285 12862018-05-30 1287 1288 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 1289 12902018-05-24 1291 1292 - Close connection properly when packet encryption fails 1293 12942018-05-23 1295 1296 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 1297 12982018-05-21 1299 1300 - [API Change] Add optional callback to call when handshake is done 1301 - [API Change, BUGFIX] After send failure, wait until transport available 1302 13032018-05-18 1304 1305 - [API] Expose useful lsquic_ver2str[] in lsquic.h 1306 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 1307 - Improve checks of number of incoming streams limit and associated 1308 error reporting. 1309 - [BUGFIX] Command-line option `-6` now works correctly. 1310 13112018-05-16 1312 1313 - [FEATURE] DNS resolution 1314 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 1315 - http_client: fix priority range generated by -E flag 1316 13172018-05-09 1318 1319 - [FEATURE] Add support for Q043. 1320 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 1321 - Fix typo in debug message. 1322 - Fix code indentation. 1323 - Add /* fallthru */ comment to stop newer gcc from complaining. 1324 - Logger: fix compilation of optimized Windows build. 1325 13262018-05-04 1327 1328 - [FEATURE] Add support for Q042. 1329 - Remove comment: MSPC is obsolete (no code changes) 1330 - Prog: use lsquic_str2ver() when processing -o version flag 1331 - Remove unused CTIM and SRBF transport parameters 1332 - Disable QUIC versions Q037 and Q038 by default 1333 - Fix Windows compilation by including compat header file in 1334 lshpack.c 1335 - Address warnings produced by newer versions of gcc 1336 - Future-proof: turn off -Werror 1337 13382018-05-02 1339 1340 - [BUGFIX] Make lsquic_conn_quic_version() available 1341 - Switch to using ls-hpack 1.1 1342 - [BUGFIX] Do not ignore stream resets after receiving FIN 1343 13442018-04-27 1345 1346 - HPACK: do not allow header block to end with table size update. 1347 13482018-04-25 1349 1350 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 1351 packets. 1352 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 1353 - [BUGFIX] connections with blocked scheduled packets are not tickable 1354 for sending. 1355 - [BUGFIX] Conn is tickable if it wants to send a connection-level 1356 frame. 1357 13582018-04-23 1359 1360 - Fix busy loop: tickable must make progress. When connection is 1361 self-reporting as tickable, it must make progress when ticked. There 1362 are two issues: 1363 1. If there are buffered packets, the connection is only tickable if 1364 they can be sent out. 1365 2. A connection is tickable if there are streams on the servicing 1366 queue. When the tick occurs, we must service the stream 1367 independent of whether any packets are sent. 1368 - Fix assertion in pacer which can be incorrect under some 1369 conditions. 1370 - cmake: do not turn on address sanitizer if in Travis. 1371 13722018-04-20 1373 1374 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 1375 changes. 1376 13772018-04-19 1378 1379 - [BUGFIX] Add connection to Tickable Queue on stream write 1380 - cmake: use MSVC variable instead of trying to detect 1381 - engine: improve connection incref/decref logging 1382 - stream: don't ignore errors that may occur on triggered flush 1383 - connection: remove obsolete method 1384 - engine: indicate connection as tickable if previous call went 1385 over threshold 1386 13872018-04-09 1388 1389 [API Change, OPTIMIZATION] Only process conns that need to be processed 1390 1391 The API is simplified: do not expose the user code to several 1392 queues. A "connection queue" is now an internal concept. 1393 The user processes connections using the single function 1394 lsquic_engine_process_conns(). When this function is called, 1395 only those connections are processed that need to be processed. 1396 A connection needs to be processed when: 1397 1398 1. New incoming packets have been fed to the connection. 1399 2. User wants to read from a stream that is readable. 1400 3. User wants to write to a stream that is writeable. 1401 4. There are buffered packets that can be sent out. (This 1402 means that the user wrote to a stream outside of the 1403 lsquic library callback.) 1404 5. A control frame (such as BLOCKED) needs to be sent out. 1405 6. A stream needs to be serviced or delayed stream needs to 1406 be created. 1407 7. An alarm rings. 1408 8. Pacer timer expires. 1409 1410 To achieve this, the library places the connections into two 1411 priority queues (min heaps): 1412 1413 1. Tickable Queue; and 1414 2. Advisory Tick Time queue (ATTQ). 1415 1416 Each time lsquic_engine_process_conns() is called, the Tickable 1417 Queue is emptied. After the connections have been ticked, they are 1418 queried again: if a connection is not being closed, it is placed 1419 either in the Tickable Queue if it is ready to be ticked again or 1420 it is placed in the Advisory Tick Time Queue. It is assumed that 1421 a connection always has at least one timer set (the idle alarm). 1422 1423 The connections in the Tickable Queue are arranged in the least 1424 recently ticked order. This lets connections that have been quiet 1425 longer to get their packets scheduled first. 1426 1427 This change means that the library no longer needs to be ticked 1428 periodically. The user code can query the library when is the 1429 next tick event and schedule it exactly. When connections are 1430 processed, only the tickable connections are processed, not *all* 1431 the connections. When there are no tick events, it means that no 1432 timer event is necessary -- only the file descriptor READ event 1433 is active. 1434 1435 The following are improvements and simplifications that have 1436 been triggered: 1437 1438 - Queue of connections with incoming packets is gone. 1439 - "Pending Read/Write Events" Queue is gone (along with its 1440 history and progress checks). This queue has become the 1441 Tickable Queue. 1442 - The connection hash no longer needs to track the connection 1443 insertion order. 1444 14452018-04-02 1446 1447 - [FEATURE] Windows support 1448 1449 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 1450 14512018-03-09 1452 1453 - [OPTIMIZATION] Merge series of ACKs if possible 1454 1455 Parsed single-range ACK frames (that is the majority of frames) are 1456 saved in the connection and their processing is deferred until the 1457 connection is ticked. If several ACKs come in a series between 1458 adjacent ticks, we check whether the latest ACK is a strict superset 1459 of the saved ACK. If it is, the older ACK is not processed. 1460 1461 If ACK frames can be merged, they are merged and only one of them is 1462 either processed or saved. 1463 1464 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 1465 1466 Never generate a gap in the sent packet number sequence. This reduces 1467 the send history to a single number instead of potentially a series of 1468 packet ranges and thereby speeds up ACK verification. 1469 1470 By default, detecting a gap in the send history is not fatal: only a 1471 single warning is generated per connection. The connection can continue 1472 to operate even if the ACK verification code is not able to detect some 1473 inconsistencies. 1474 1475 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 1476 1477 The first part of struct lsquic_send_ctl now consists of members that 1478 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 1479 which is the normal case). To speed up reads and writes, we no longer 1480 try to save space by using 8- and 16-bit integers. Use regular integer 1481 width for everything. 1482 1483 - [OPTIMIZATION] Cache size of sent packet. 1484 1485 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 1486 1487 Instead of parsing our own ACK frames when packet has been acked, 1488 use the value saved in the packet_out structure when the ACK frame 1489 was generated. 1490 1491 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 1492 1493 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 1494 1495 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 1496 1497 - Fix: http_client: fix -I flag; switch assert() to abort() 1498 14992018-02-26 1500 - [API Change] lsquic_engine_connect() returns pointer to the connection 1501 object. 1502 - [API Change] Add lsquic_conn_get_engine() to get engine object from 1503 connection object. 1504 - [API Change] Add lsquic_conn_status() to query connection status. 1505 - [API Change] Add add lsquic_conn_set_ctx(). 1506 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 1507 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 1508 arrives. 1509 - [OPTIMIZATION] Do not compile expensive send controller sanity check 1510 by default. 1511 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 1512 - [OPTIMIZATION] Only make squeeze function call if necessary. 1513 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 1514 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 1515 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 1516 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 1517 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 1518 ordered. 1519 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 1520 - Fix: reset incoming streams that arrive after we send GOAWAY. 1521 - Fix: delay client on_new_conn() call until connection is fully set up. 1522 - Fixes to buffered packets logic: splitting, STREAM frame elision. 1523 - Fix: do not dispatch on_write callback if no packets are available. 1524 - Fix WINDOW_UPDATE send and resend logic. 1525 - Fix STREAM frame extension code. 1526 - Fix: Drop unflushed data when stream is reset. 1527 - Switch to tracking CWND using bytes rather than packets. 1528 - Fix TCP friendly adjustment in cubic. 1529 - Fix: do not generate invalid STOP_WAITING frames during high packet 1530 loss. 1531 - Pacer fixes. 1532 15332017-12-18 1534 1535 - Fix: better follow cubic curve after idle period 1536 - Fix: add missing parts to outgoing packet splitting code 1537 - Fix: compilation using gcc 4.8.4 1538 15392017-10-31 1540 1541 - Add APIs.txt -- describes LSQUIC APIs 1542 15432017-10-31 1544 1545 - [API Change] Sendfile-like functionality is gone. The stream no 1546 longer opens files and deals with file descriptors. (Among other 1547 things, this makes the code more portable.) Three writing functions 1548 are provided: 1549 1550 lsquic_stream_write 1551 lsquic_stream_writev 1552 lsquic_stream_writef (NEW) 1553 1554 lsquic_stream_writef() is given an abstract reader that has function 1555 pointers for size() and read() functions which the user can implement. 1556 This is the most flexible way. lsquic_stream_write() and 1557 lsquic_stream_writev() are now both implemented as wrappers around 1558 lsquic_stream_writef(). 1559 1560 - [OPTIMIZATION] When writing to stream, be it within or without the 1561 on_write() callback, place data directly into packet buffer, 1562 bypassing auxiliary data structures. This reduces amount of memory 1563 required, for the amount of data that can be written is limited 1564 by the congestion window. 1565 1566 To support writes outside the on_write() callback, we keep N 1567 outgoing packet buffers per connection which can be written to 1568 by any stream. One half of these are reserved for the highest 1569 priority stream(s), the other half for all other streams. This way, 1570 low-priority streams cannot write instead of high-priority streams 1571 and, on the other hand, low-priority streams get a chance to send 1572 their packets out. 1573 1574 The algorithm is as follows: 1575 1576 - When user writes to stream outside of the callback: 1577 - If this is the highest priority stream, place it onto the 1578 reserved N/2 queue or fail. 1579 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 1580 rather than N/2, allowing high-priority streams to write as 1581 much as can be sent.) 1582 - If the stream is not the highest priority, try to place the 1583 data onto the reserved N/2 queue or fail. 1584 - When tick occurs *and* more packets can be scheduled: 1585 - Transfer packets from the high N/2 queue to the scheduled 1586 queue. 1587 - If more scheduling is allowed: 1588 - Call on_write callbacks for highest-priority streams, 1589 placing resulting packets directly onto the scheduled queue. 1590 - If more scheduling is allowed: 1591 - Transfer packets from the low N/2 queue to the scheduled 1592 queue. 1593 - If more scheduling is allowed: 1594 - Call on_write callbacks for non-highest-priority streams, 1595 placing resulting packets directly onto the scheduled queue 1596 1597 The number N is currently 20, but it could be varied based on 1598 resource usage. 1599 1600 - If stream is created due to incoming headers, make headers readable 1601 from on_new. 1602 1603 - Outgoing packets are no longer marked non-writeable to prevent placing 1604 more than one STREAM frame from the same stream into a single packet. 1605 This property is maintained via code flow and an explicit check. 1606 Packets for stream data are allocated using a special function. 1607 1608 - STREAM frame elision is cheaper, as we only perform it if a reset 1609 stream has outgoing packets referencing it. 1610 1611 - lsquic_packet_out_t is smaller, as stream_rec elements are now 1612 inside a union. 1613 16142017-10-12 1615 1616 - Do not send RST_STREAM when stream is closed for reading 1617 - Raise maximum header size from 4K to 64K 1618 - Check header name and value lengths against maximum imposed by HPACK 1619 - Fix NULL dereference in stream flow controller 1620 16212017-10-09 1622 1623 - Hide handshake implementation behind a set of function pointers 1624 - Use monotonically increasing clock 1625 - Make sure that retx delay is not larger than the max of 60 seconds 1626 16272017-09-29 1628 1629 - A few fixes to code and README 1630 16312017-09-28 1632 1633 - Add support for Q041; drop support for Q040 1634 16352017-09-27 1636 1637 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 1638 16392017-09-26 1640 1641 - Add support for Mac OS 1642 - Add support for Raspberry Pi 1643 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 1644 16452017-09-22 1646 1647 - Initial release 1648