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