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