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