CHANGELOG revision b62ec17f
12020-09-29 2 - 2.21.0 3 - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support. 4 - [API] Let user generate Souce Connection IDs. 5 - [FEATURE] Allow building lsquic as shared library. 6 - [OPTIMIZATION] Receive history: use a single contiguous memory 7 block for everything. 8 - Deprecate QUIC versions ID-27 and ID-30. 9 102020-09-25 11 - 2.20.2 12 - [BUGFIX] Memory leak: free pushed promise when refcnt is zero. 13 - [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets. 14 152020-09-23 16 - 2.20.1 17 - [BUGFIX] Typo in new "validate peer addr by DCID" code. It is 18 a benign bug (works either way), but better to fix it. 19 - Simplify Stream Priority Iterator (SPI). 20 - Minor documentation updates. 21 222020-09-15 23 - 2.20.0 24 - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support. 25 - [FEATURE] Unreliable Datagram Extension support. 26 - [FEATURE] Adaptive congestion controller. 27 - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams. 28 - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO 29 data comes in. 30 - [BUGFIX] Spin bit is now strictly per path; value is reset on 31 DCID change. 32 - [BUGFIX] Check that max value of max_streams_uni and 33 max_streams_bidi TPs is 2^60. 34 - [BUGFIX] Close IETF mini conn immediately if crypto session 35 cannot be initialized. 36 - Deprecate ID-28 (no browser uses it): it's no longer in the 37 default versions list. 38 - New programs duck_server and duck_client that implement the 39 experimental siduck-00 protocol. They quack! 40 - IETF crypto streams: don't limit ourselves from sending. 41 - Command-line programs: turn off QL loss bits if -G is used, as 42 Wireshark cannot decrypt QUIC packets when this extension is used. 43 - Turn all h3 framing unit tests back on. 44 - Fix malo initialization when compiled in no-pool mode. 45 462020-09-08 47 - 2.19.10 48 - [FEATURE] Add lsquic_stream_pwritev(). This function allows one to 49 reduce the number of system calls required to read a file from disk 50 by using lsquic_stream_pwritev() together with preadv(2). 51 - [BUGFIX] When stream is reset, it is writeable -- let user collect 52 the error. 53 - [BUGFIX] Calculate correct conn flow control if reading ends early. 54 - [BUGFIX] Remove stream from read and write queues on internal 55 shutdown. This is a regression introduced in 2.19.7. 56 - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation. 57 - Turn off mini conn history when compiling with Visual Studio; this 58 allows the project to compile on Windows again. 59 - http_client: Add -3 flag to stop reading from streams early; code 60 cleanup. 61 - Don't use -Werror. 62 632020-09-02 64 - 2.19.8 65 - [FEATURE] Update the timestamp extension to latest version. 66 - [FEATURE] Cope with appearance of ECN blackholes. 67 - [OPTIMIZATION] return packno offset and size when header is generated. 68 - [BUGFIX] ignore old ACK frames in mini conns. 69 - [BUGFIX] Mark initial server path as initialized. 70 - [BUGFIX] Do not merge ACK if ECN counts do not match. 71 - Turn incoming packet number history in mini conn back on. 72 - Record mini conn event history again when compiled in debug mode. 73 - IETF mini conn: log when ACK is queued. 74 - Clean up and refactor code in several places. 75 762020-08-26 77 - 2.19.7 78 - Handle ECT-CE event: issue a loss event. 79 - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE. 80 - Use Max Push ID in GOAWAY frame to cancel promises. 81 - Add support for HTTP/3 CANCEL_PUSH frame. 82 - lsquic_stream_is_pushed: streams without headers are never pushed. 83 - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down. 84 - Improve logic whether to generate CONNECTION_CLOSE. 85 862020-08-20 87 - 2.19.6 88 - Don't process incoming ECN marks if ECN is not enabled. 89 - Schedule ACK when incoming packet is marked with CE. 90 912020-08-11 92 - 2.19.5 93 - [BUGFIX] Generate frame record when moving an ACK from one buffered 94 packet to another. 95 962020-08-06 97 - 2.19.4 98 - [BUGFIX] Do not return an oversize MTU probe to connection twice. 99 - [FEATURE] Delayed Acks updated to latest draft. Still experimental. 100 - Minor code cleanup in IETF full connection. 101 1022020-08-04 103 - 2.19.3 104 - [BUGFIX] Regression in 2.19.1 that breaks Q050 105 1062020-07-30 107 - 2.19.2 108 - [BUGFIX] Do not reduce PLPMTU size by network overhead. 109 - [BUGFIX] Windows build. 110 1112020-07-29 112 - 2.19.1 113 - [FEATURE] DPLPMTUD support. IETF connections now search for the 114 maximum packet size, improving throughput. 115 - [DEBUG] Record event in stream history when on_close() is called 116 in dtor. 117 1182020-07-22 119 - 2.18.2 120 - [BUGFIX] Send prediction: lone path challenges do not get squeezed out 121 - Fix crash in http_client: now -K and -B can be used simultaneously 122 1232020-07-14 124 - 2.18.1 125 - [FEATURE] Implement the "QUIC bit grease" extension. 126 - [BUGFIX] Selecting CID used for logging on client. 127 - [BUGFIX] Header protection assertion. 128 - [BUGFIX] Server: enable SSL key logging when cert lookup callback 129 is not set. 130 - Remove some dead code. 131 1322020-07-06 133 - 2.18.0 134 - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT" 135 always refers to early data, meaning a request that the server can 136 reply to in the very first return flight. A more appropriate name 137 for what we support on the client site is "session resumption," which 138 is standard TLS terminology. Later, when we add support for 0-RTT 139 (early data), we can use the 0-RTT terminology again, this time in 140 proper context. 141 - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL. 142 - [BUGFIX] Make connection tickable when it's marked as closed. 143 - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode. 144 - Several documentation fixes and improvements. 145 - Minor code cleanup. 146 1472020-06-24 148 - 2.17.2 149 - [BUGFIX] Infinite loop in stream: advance read offset when discarding 150 data. 151 - [OPTIMIZATION] Header protection: only initialize cipher once. 152 - [OPTIMIZATION] Batch header protection application. 153 1542020-06-18 155 - 2.17.1 156 - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support. 157 - [BUGFIX] Check that scheduled packets are also sendable when 158 calculating a connection's "tickable" property. 159 - [BUGFIX] Don't count scheduled packets as in-flight when pacer is 160 checked on tick. 161 - gQUIC: delay calling on_new for pushed stream until headers are 162 available. 163 - Allow nested calls to lsquic_engine_connect(). 164 1652020-06-15 166 - 2.16.3 167 - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn 168 instead of dropping them. 169 - [BUGFIX] Crash: check decrypt context before using it. This regression 170 was introduced in 2.16.2. 171 1722020-06-12 173 - 2.16.2 174 - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in 175 ClientHello. This change requires using a newer version of BoringSSL. 176 - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor. 177 - [BUGFIX] IETF QUIC client: narrow migration check to a single path. 178 - [BUGFIX] NULL dereference: set function pointers for alarm for path 179 challenges 2 and 3. 180 - [BUGFIX] HTTP/3 headers may be followed immediately by trailers. 181 - [BUGFIX] Log messages when SCID changes. 182 1832020-06-09 184 - 2.16.1 185 - [FEATURE] Use "no-progress timeout" after which connection is closed. 186 - [BUGFIX] Select new SCID when current SCID is retired. 187 - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during 188 mini/full handoff. 189 - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated. 190 - [BUGFIX] Mini conn: consider amplification when deciding to return 191 TICK_SEND. 192 - [BUGFIX] Don't double-count tag length in amplification logic. 193 - [BUGFIX] Don't squeeze out lone path challenges. 194 - [BUGFIX] Log messages dealing with scheduled packet queue squeezing. 195 - [BUGFIX] don't wipe current path if no path challenge responses 196 come back. 197 - [BUGFIX] When path is reset, don't lose path_id which is used for 198 logging. 199 - Downgrade flow control violations to info log level from warnings. 200 - Fix connection cap extra check, avoid checks in nested calls. 201 - Fix some unit tests when extra checks are enabled. 202 - Use ls-hpack 2.2.1. 203 - Turn off unconditional extra checks for IETF clients. 204 - Extra checks: don't verify sent size of hello packets. Client 205 changes DCID length and this check will fail. 206 2072020-06-03 208 - 2.16.0 209 - [API] Use lsxpack_header v206. 210 - [FEATURE] Windows supported. 211 - [BUGFIX] Fix uninitialized variable use in client (regression in 212 2.15.0). 213 - Use ls-hpack 2.2.0. 214 - Use ls-qpack 2.2.0. 215 - Sample programs: fix the way maximum number of packets is 216 calculated. 217 - Remove some dead code. 218 2192020-05-27 220 - 2.15.0 221 - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support. 222 - [BUGFIX] Ignore Retry packets after other packets are decrypted 223 successfully. 224 - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte 225 length minimum. 226 - http_client: fix and optimize lsxpack_header allocator. 227 - Drop support for Internet Draft 25. 228 2292020-05-19 230 - 2.14.8 231 - Support Android. 232 - Rerrange tree: move command-line examples into bin/ and unit 233 tests into tests/ from test/unittests/. 234 2352020-05-12 236 - 2.14.7 237 - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050. 238 - [BUGFIX] Frame reader: skip headers if target stream is closed. 239 2402020-05-06 241 - 2.14.6 242 - [BUGFIX] Fix amplification mitigation in 0-RTT case. 243 - [BUGFIX] IETF mini connection should not tickable if cannot send 244 a packet due to amplification. 245 - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2. 246 - [BUGFIX] Qlog server certificates for IETF QUIC connections. 247 - [BUGFIX] Uninitialized struct padding usage in tokgen (benign). 248 - [BUGFIX] Incorrect argument to shi_lookup() (benign). 249 2502020-04-29 251 - 2.14.5 252 - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match. 253 - [BUGFIX] Frame reader: skip headers if target stream is not found. 254 - [BUGFIX] Log message in QPACK decoder handler. 255 2562020-04-24 257 - 2.14.4 258 - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams. 259 - [BUGFIX] IETF client: set correct flags on bidirectional streams. 260 - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned 261 streams. 262 - [BUGFIX] Do not call header callbacks after stream is closed. 263 - Use ls-qpack 2.1.1 264 2652020-04-15 266 - 2.14.3 267 - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback. 268 - [BUGFIX] Use ls-hpack 2.1.1 269 - Improve stream code readability. 270 - Use ls-qpack 2.0.5 271 2722020-04-08 273 - 2.14.2 274 - [BUGFIX] Use ls-qpack 2.0.4 275 - [BUGFIX] Honor max packet size on the client and when path changes. 276 - http_server: fix prepare_decode() function. 277 2782020-04-07 279 - 2.14.1 280 - [BUGFIX] Place connections on tickable queue when sending is reenabled. 281 - [BUGFIX] A connection is tickable if it has unsent packets. 282 - [BUGFIX] Heed peer's max_packet_size transport parameter. 283 2842020-03-30 285 - 2.14.0 286 - [API] Use lsxpack_header structure to send HTTP headers. 287 - [OPTIMIZATION] nocopy's readable_bytes() function. 288 - http_server: fix typo in error message 289 - Use ls-hpack 2.1.0. 290 - Use ls-qpack 2.0.0. 291 2922020-03-23 293 - 2.13.3 294 - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked. 295 2962020-03-13 297 - 2.13.2 298 - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode(). 299 3002020-03-12 301 - 2.13.1 302 - [API] Use lsxpack_header structure to process incoming headers. 303 - [BUGFIX] Fix assertion when zero-padding Initial packet. 304 - [BUGFIX] Use idle timeout before we learn of peer's value. 305 - Use ls-hpack 2.0.1 -- has lsxpack_header changes. 306 - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not 307 used yet). 308 - Code cleanup: prefix exported functions with "lsquic_". 309 3102020-03-02 311 - 2.12.0 312 - [FEATURE] QUIC timestamps extension. 313 - [API] New: ea_alpn that is used when not in HTTP mode. 314 - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC. 315 - [BUGFIX] Benign double-free -- issue #110. 316 - [BUGFIX] Printing of transport parameters. 317 3182020-02-24 319 - 2.11.1 320 - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support. 321 - [FEATURE] Add experimental delayed ACKs extension. 322 - Drop support for Internet Draft 24. 323 - Code cleanup. 324 3252020-02-14 326 - 2.10.6 327 - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error. 328 - [BUGFIX] Send gap warning due to missing poisoned packet. 329 - Stream unit test for scenario in issue #106. 330 3312020-02-13 332 - 2.10.5 333 - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct 334 time. 335 - Refactor transport parameters module. 336 - Minor code cleanup. 337 3382020-02-11 339 - 2.10.4 340 - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received. 341 - [BUGFIX] Don't treat garbage UDP padding as library error; ignore 342 it instead. 343 - [BUGFIX] Fix compilation on FreeBSD (missing header). 344 - Code cleanup: remove unnecessary #includes. 345 3462020-01-31 347 - 2.10.3 348 - [BUGFIX] Cancel path responses and challenges on old path when 349 switching to new path 350 - Logging network path information. 351 3522020-01-30 353 - 2.10.2 354 - [BUGFIX] Do not delay ACKs for Initial and Handshake packets. 355 - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn 356 promotion. 357 - Logging improvements. 358 - http_client: discard data faster. 359 3602020-01-29 361 - 2.10.1 362 - [BUGFIX] Coalesced packets could get longer than normal packet 363 size. 364 - Add spin bit configuration option es_spin (-o spin=[01]). 365 - Disable spin bit in 1/16 of connections. 366 - Improve logging a bit. 367 3682020-01-28 369 - 2.10.0 370 - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support. 371 - [API] Drop support for ID-23. 372 - [BUGFIX] Set key phase bit on outgoing packets correctly. 373 - Code cleanup. 374 3752020-01-20 376 - 2.9.0 377 - [API] Drop support for Q039. 378 - Improve ACK-queuing logic. Send an ACK once in a while if 379 peer keeps on sending non-ack-eliciting packets. 380 - Improve Alt-Svc string: Q050 and later are not included in 381 the old-style "quic" string. 382 - Send stateless resets if connection could not be promoted. 383 - Schedule MAX_DATA if needed when DATA_BLOCKED is received. 384 - Use ls-qpack 0.11.2 -- needed for server push optimization. 385 - Code cleanup: handle some error cases, improve logging. 386 3872020-01-16 388 - 2.8.9 389 - [BUGFIX] Use ls-qpack 0.11.1 390 - [OPTIMIZATION] Generate random bytes in batches. 391 - Change loss_bits transport parameter ID to 0x1057 following 392 latest draft. 393 - Randomize period with which PINGs are sent to elicit ACKs. 394 - Some refactoring and code cleanup. 395 3962020-01-14 397 - 2.8.8 398 - [BUGFIX] Invalid read when parsing IETF transport parameters 399 (this was benign). 400 - [OPTIMIZATION] Frame bundling when using buffered packets in 401 IETF QUIC: a) flush QPACK decoder stream and b) include ACKs 402 in opportunistic fashion. 403 - Fix HTTP/3 framing unit test. 404 - Code cleanup. 405 4062020-01-09 407 - 2.8.7 408 - [BUGFIX] Initial packet size check for IETF mini conn applies to 409 UDP payload, not QUIC packet. 410 - Support old and new school loss_bits transport parameter. 411 - Use Q run length of 64 as suggested in the loss bits Draft. 412 - Undo square wave count when packet is delayed. 413 - Code cleanup; minor fixes. 414 4152020-01-06 416 - 2.8.5 417 - [HTTP3] Verify number of bytes in incoming DATA frames against 418 content-length. 419 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 420 decoder window. This addresses a potential attack whereby client 421 can cause the server to keep allocating memory. See Security 422 Considerations in the QPACK draft. 423 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 424 - [BUGFIX] Init IETF connection flow controller using correct setting. 425 - [BUGFIX] Fix unintended sign extension when removing header protection. 426 - Code cleanup and minor fixes. 427 4282019-12-30 429 - 2.8.1 430 - [FEATURE] Use occasional packet number gaps to detect optimistic 431 ACK attacks. 432 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 433 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 434 ACK frames. 435 - IETF QUIC: use RTT estimate in ack timeout calculation. 436 - IETF handshake: abort conn when unexpected errors occur. 437 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 438 - Server: enforce 1200 byte Initial minimum packet size. 439 - [CLEANUP] Remove code to disable gQUIC crypto. 440 - [CLEANUP] Remove n_timestamps from ACK info struct. 441 - Optimize driver: reuse previous ancillary message when possible. 442 4432019-12-23 444 - 2.8.0 445 - [FEATURE] Add support for Q050. 446 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 447 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 448 logging. 449 4502019-12-18 451 - 2.7.3 452 - [DEBUG] Further dedup next advisory tick messages when reason is 453 the same. 454 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 455 GitHub bug #94. 456 - Use Cubic by default again instead of BBR, as it delivers more 457 consistent performance. 458 4592019-12-11 460 - 2.7.2 461 - [BUGFIX] Send controller: update scheduled bytes when DCID length 462 changes (IETF client). 463 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 464 that we use loss chains. 465 - [PORTABILITY] Fix build on Alpine Linux. 466 - [PORTABILITY] Fix build using XCode. 467 - Client initial DCID length: use RAND_bytes() instead of rand(3). 468 - Add unit tests for connection min heap. 469 - [DEBUG] Log CID in gQUIC handshake module 470 - [DEBUG] Turn on extra checks for IETF client send controller. 471 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 472 - [DEBUG] QPACK decoder handler: log header error code. 473 4742019-12-05 475 - 2.7.1 476 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 477 ignore_init() makes an assumption that the send controller has access 478 to all outgoing packets. This change wraps a few IETF full connection 479 methods to delay calling ignore_init() until the engine returns all 480 outgoing packets that were batched. 481 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 482 This needs to be done because the value of errno may be lost on 483 some platforms. 484 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 485 - [BUGFIX] Do not cancel header block processing after failure, as 486 QPACK releases the reference in that case. 487 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 488 - Several small improvements to the test server. 489 4902019-11-27 491 - 2.7.0 492 - [API, FEATURE] Close connection immediately when ea_packets_out() 493 fails with errno != EAGAIN. The API change is that errno is now 494 examined. Make sure to set it if using something other than 495 sendmsg() to send packets. 496 - [CLEANUP] Immediate close logic in IETF full conn. 497 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 498 4992019-11-22 500 - 2.6.7 501 - [FEATURE] Implement the QL extension (offered by default). 502 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 503 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 504 - [DEBUG] Turn on debug message for next advisory tick. 505 5062019-11-20 507 - 2.6.6 508 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 509 - [BUGFIX] Truncate log messages instead of throwing them away. 510 5112019-11-15 512 - 2.6.5 513 - [BUGFIX] High priority buffered packet queue length. 514 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 515 5162019-11-12 517 - 2.6.3 518 - [BUGFIX] Close DATA frames with empty payload correctly. 519 5202019-11-11 521 - 2.6.2 522 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 523 packets. 524 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 525 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 526 connection. 527 - [BUGFIX] Client: don't send duplicate reset tokens. 528 - [BUGFIX] Remove invalid assertion in H3 framing code. 529 - Silence a warning in send ctl by restructuring switch() statement. 530 5312019-11-08 532 - 2.6.1 533 - [BUGFIX] set retry token on all resubmitted packets. 534 - Event log: log sent packet flags. In particular, this allows one 535 to see whether token was sent. 536 - Don't migrate client if es_allow_migration is false. 537 5382019-11-07 539 - 2.6.0 540 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 541 5422019-11-07 543 - 2.5.2 544 - [BUGFIX] argument order to gQUIC client constructor. Regression 545 introduced in 2.5.0. 546 - [BUGFIX] split buffered packet error recovery: destroy the correct 547 packet. 548 5492019-11-04 550 - 2.5.1 551 - [BUGFIX] Fix double-free when emptying a packet number space. 552 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 553 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 554 verneg packets (regression introduced in 2.5.0). 555 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 556 - [OPTIMIZATION] http_server: compile regexes only once. 557 5582019-10-31 559 - 2.5.0 560 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 561 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 562 - [BUGFIX] Don't evict streams from priority iterator if there is 563 only one queue. 564 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 565 - Use ls-qpack v0.10.7. 566 5672019-10-24 568 - 2.4.10 569 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 570 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 571 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 572 values are not unique). 573 - [BUGFIX] Always set the idle alarm in IETF connection so that it 574 can time out. 575 - Use ls-qpack v0.10.6, as it silences some warnings. 576 5772019-10-21 578 - 2.4.8 579 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 580 5812019-10-15 582 - 2.4.7 583 - Add echo client and server to the distibution. 584 - Add MD5 client and server to the distibution. 585 - Fix http_client: check command-line arguments better, prevent crash. 586 - Fix IETF conn: can_write_ack() should only care about APP PNS. 587 - Client: delay stream creation until handshake succeds. 588 - Reset HTTP stream whose write end is closed prematurely. 589 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 590 - Log reason why engine is tickable. 591 5922019-10-11 593 - 2.4.6 594 - Minor code cleanup and logging improvements. 595 - Server and client programs: include library version (e.g. 2.4.6) 596 into `server' and `user-agent' headers. 597 5982019-10-08 599 - 2.4.5 600 - [OPTIMIZATION]: flush encoder stream only when necessary. 601 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 602 - [BUGFIX] Typo in IETF conn SETTINGS writer. 603 - Use latest BoringSSL. 604 6052019-10-08 606 - 2.4.4 607 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 608 - [BUGFIX] NULL dereference when H3 frame header would be split. 609 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 610 - [BUGFIX] Allow PING frames in IETF mini conn. 611 - [BUGFIX] Mini conns: don't send any packets after receiving 612 CONNECTION_CLOSE. 613 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 614 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 615 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 616 valid stream number). 617 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 618 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 619 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 620 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 621 - Update ls-qpack to v0.10.1. 622 6232019-09-30 624 - 2.4.3 625 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 626 For example, h3-Q043. Chrome will switch to using this format at 627 some point in the future. 628 - [BUGFIX] Send correct value in max_streams_uni transport param 629 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 630 to 0xFFFFFFFF 631 6322019-09-23 633 - 2.4.2 634 - [BUGFIX] H3 framing: fix zero-byte write when space is available 635 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 636 is closed 637 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 638 - [BUGFIX] Fix use-after-free in IETF full conn 639 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 640 SSL object and crypto streams. 641 6422019-09-18 643 - 2.4.0 644 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 645 6462019-09-13 647 - 2.3.1 648 - [BUGFIX] Fix memory leaks 649 - [BUGFIX] Fix unit tests 650 6512019-09-12 652 - 2.3.0 653 - [FEATURE] BBR congestion control is on by default 654 - [BUGFIX] BBR app-limited logic 655 - [BUGFIX] Fix uninitialized warnings in IETF 656 - [BUGFIX] Update ls-qpack to v0.9.14 657 - [CLEANUP] Code cleanup 658 6592019-09-11 660 - 2.2.0 661 - [FEATURE] Server code is included in the library 662 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 663 6642019-05-13 665 - 1.21.2 666 - [OPTIMIZATION] HPACK: use history to improve compression performance 667 6682019-05-06 669 - 1.21.1 670 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 671 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 672 search static and dynamic tables. 673 6742019-04-12 675 - 1.21.0 676 - [FEATURE] Add qlog log module. 677 6782019-04-01 679 - 1.20.0 680 - [FEATURE] Add support for Q046. 681 6822019-03-19 683 - 1.19.6 684 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 685 send. ACK frames placed in packets in buffered queues (optimization 686 introduced in 1.17.15) can be preceded by an ACK frame generated later. 687 In this case, the older ACK frame should not be sent out, as Chromium- 688 based servers flags decrease in the ACK frame's Largest Observed value 689 as an error. 690 6912019-03-05 692 - 1.19.5 693 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 694 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 695 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 696 6972019-02-25 698 - 1.19.4 699 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 700 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 701 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 702 7032019-02-18 704 - 1.19.3 705 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 706 packet number encoding does not exist in Q044. This fixes a 707 regression introduced in '[BUGFIX] Buffered packets can contain 708 ACK frames' -- we need to keep QUIC version in mind when selecting 709 the longest possible packet number encoding used for the buffered 710 packet that carries the ACK. 711 - [BUGFIX] Do not increase CWND when timeout occurs. 712 - http_client: support setting handshake timeout on command line. 713 Use -o handshake_to=timeout. 714 - http_client: use -k to connect UDP socket to pick up ICMP errors. 715 - http_client: allow pathless mode, when only handshake is performed 716 without issuing any requests. This can be done by simply not 717 specifying a -p flag on the command line. 718 7192019-02-11 720 - 1.19.2 721 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 722 - [BUGFIX] Version checking in zero_rtt deserialize function. 723 7242019-02-04 725 - 1.19.1 726 - [BUGFIX] Fix Windows build. 727 7282019-02-04 729 - 1.19.0 730 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 731 information; it can be supplied to a subsequent connect() call. 732 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 733 - [BUGFIX] Resuscitate the Windows build. 734 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 735 - [BUGFIX] Buffered packets can contain ACK frames. 736 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 737 - [BUGFIX] Fix potential null dereference when realloc fails. 738 - cmake: simplify build configuration. 739 7402019-01-28 741 - 1.18.0 742 - [API Change] Can specify clock granularity in engine settings. 743 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 744 2018-04-09, it is not necessary to try to approximate the next tick 745 time in the pacer: it can use fix clock granularity specified by 746 the user. 747 - [BUGFIX] Do not tick constantly before handshake is done. 748 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 749 if we cannot allocate *more* packets, we could still be able to write 750 to one already allocated. 751 - [BUGFIX] Do not schedule pacer if there are no lost packets. 752 7532019-01-17 754 - 1.17.15 755 - [BUGFIX] http_client: make sure only one read per on_read() callback 756 is performed in the header conversion bypass (-B) mode. 757 - http_client: with -E, assign random priority when stream is created. 758 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 759 buffered packet if an ACK is queued. This reduces the number of 760 standalone ACK packets. 761 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 762 stream into an outgoing packet. This change minimizes the number of 763 buffered packets required to store several small HTTP messages by 764 virtue of allowing more than one STREAM frame from HEADERS stream in 765 the same packet. 766 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 767 causes the headers to be written to the same buffered packet queue, 768 thereby improving packet utilization, especially for small HTTP 769 messages. 770 7712019-01-16 772 - 1.17.14 773 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 774 time to download, requests per seconds, and bandwidth. See -t flag. 775 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 776 - [BUGFIX] http_client: do not display cert chain before each request. 777 Now this is only done once per connection, if the handshake is 778 successful and -a option is given. 779 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 780 stream is scheduled to be closed after on_read() callback returns, 781 close it immediately instead of waiting until the end of the tick. 782 If client creates new request from on_close() event, they will be 783 processed in the same tick instead of waiting for the next one. 784 - [BUGFIX] HEADERS stream is critical: always treat it with highest 785 priority. 786 7872019-01-10 788 - 1.17.12 789 - [FEATURE] http_client can now issue parallel requests in the context 790 of a single connection. See -w option. 791 7922019-01-03 793 - 1.17.11 794 - Fix strict aliasing warning in optimized compilation. 795 7962018-12-27 797 - 1.17.10 798 - Fix the example program to be able to use parallel connections 799 again. (See the -n argument.) 800 8012018-12-18 802 - 1.17.9 803 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 804 8052018-12-10 806 - 1.17.8 807 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 808 8092018-12-03 810 - 1.17.7 811 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 812 This prevented PING from ever being sent. 813 8142018-11-29 815 - 1.17.6 816 - Add failsafe: resume sending packets after some time 817 818 The change puts a 1-second limit on the amount of time the engine 819 will not send packets after some packets are delayed. This makes 820 the library robust in case the user does not unblock the engine 821 explicitly using lsquic_engine_send_unsent_packets() call. 822 823 - [BUGFIX] Handle corner cases in send controller when packets are 824 a) delayed or b) dropped during repackaging. 825 - [BUGFIX] Memory leak: destroy buffered packets during controller 826 cleanup. 827 8282018-11-16 829 - 1.17.3 830 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 831 8322018-10-19 833 - 1.17.2 834 - [BUGFIX] Memory leak in test_frame_rw unit test. 835 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 836 flags. (Only a problem in unit tests -- benign otherwise.) 837 8382018-10-16 839 - 1.17.0 840 - [API Change] Packet out Memory Interface (PMI) update: 841 - Split PMI pool return into pmi_release and pmi_return 842 - PMI callbacks take peer_ctx and is_ipv6 arguments 843 - [BUGFIX] Fix use-after-free when certificate is updated 844 - Silence gcc warning in optimized mode by performing useless 845 initialization 846 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 847 DEVEL_MODE 848 8492018-10-03 850 - 1.16.0 851 - [API Change] Add lsquic_conn_n_avail_streams() 852 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 853 8542018-09-27 855 - 1.15.0 856 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 857 - [BUGFIX] free uncompressed headers correctly when error occurs 858 8592018-09-12 860 - 1.14.3 861 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 862 - [BUGFIX] Drop packets that would become empty due to repackaging. 863 Packets on the scheduled queue may be marked for repackaging. 864 Frames such as ACK frame that are never resent are removed from 865 repackaged packets. We must check that the newly repackaged packet 866 would not be empty. If it would be, it is destroyed instead and 867 the next packet on the scheduled queue is used. Note that this 868 change only affects the logic to return the next packet to be sent. 869 Lost packets that are being rescheduled are already processed in 870 this fashion. 871 - Byteswap CID before logging it - this makes it match Chrome CIDs. 872 (Except Q035, which is the last little-endian GQUIC version we 873 support.) 874 8752018-09-06 876 - 1.14.0 877 - [API Change] Disable packet sending if full batch cannot be sent 878 If lsquic_packets_out_f() cannot send the whole batch, disable 879 packet sending until lsquic_engine_send_unsent_packets() is called. 880 - [BUGFIX] Handle case when STREAM frame does not fit. 881 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 882 may send overlapping STREAM frames even if using versions older 883 than Q043. 884 - Custom header set fixes: 885 - set "FIN reached" flag when custom header with FIN flag is 886 claimed; 887 - do not return custom header set for a reset stream. 888 8892018-08-27 890 891 - 1.13.0 892 - [FEATURE, API Change] Add ability to create custom header set 893 objects via callbacks. This avoids reading and re-parsing 894 headers from the stream. 895 8962018-08-27 897 898 - 1.12.4 899 - Fix memory leak when engine is destroyed 900 - Fix memory leak in http_client 901 - Fix gcc warning in unit tests 902 9032018-08-22 904 905 - 1.12.3 906 - [BUGFIX] Fix duplicate STREAM frame detection 907 9082018-08-20 909 910 - 1.12.2 911 - [BUGFIX] Update count of scheduled bytes when adjusting size of 912 an already-scheduled packet. 913 - Emit info instead of warning messages when stream is used in 914 unexpected ways. 915 9162018-08-17 917 918 - 1.12.0 919 - [FEATURE, API Change] Add support for certificate verification 920 9212018-08-16 922 923 - 1.11.1 924 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 925 9262018-08-15 927 928 - 1.11.0 929 - [FEATURE] Add support for Q044. 930 9312018-08-09 932 933 - 1.10.2 934 - [BUGFIX] Don't go over limit when creating delayed streams 935 9362018-07-10 937 938 - 1.10.1 939 - [BUGFIX] process connections after each batch of packets is read 940 This avoids a problem of accumulating a very large list of packets 941 (possible when speeds are high and socket's receive buffer is large) 942 and processing it all at once. 943 - If glibc is older than 2.17, link with rt. This is necessary for 944 clock_getres(2). 945 - Add version macros to lsquic.h; remove unnecessary includes. 946 9472018-06-13 948 949 - [BUGFIX] allow multiple parallel connections by default 950 951 Use the original method of tracking connections by CIDs by default. 952 If zero-sized CID support is turned on, connections are tracked by 953 the address. A new connection is not created if another connection 954 is using the same network address 955 9562018-05-30 957 958 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 959 9602018-05-24 961 962 - Close connection properly when packet encryption fails 963 9642018-05-23 965 966 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 967 9682018-05-21 969 970 - [API Change] Add optional callback to call when handshake is done 971 - [API Change, BUGFIX] After send failure, wait until transport available 972 9732018-05-18 974 975 - [API] Expose useful lsquic_ver2str[] in lsquic.h 976 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 977 - Improve checks of number of incoming streams limit and associated 978 error reporting. 979 - [BUGFIX] Command-line option `-6` now works correctly. 980 9812018-05-16 982 983 - [FEATURE] DNS resolution 984 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 985 - http_client: fix priority range generated by -E flag 986 9872018-05-09 988 989 - [FEATURE] Add support for Q043. 990 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 991 - Fix typo in debug message. 992 - Fix code indentation. 993 - Add /* fallthru */ comment to stop newer gcc from complaining. 994 - Logger: fix compilation of optimized Windows build. 995 9962018-05-04 997 998 - [FEATURE] Add support for Q042. 999 - Remove comment: MSPC is obsolete (no code changes) 1000 - Prog: use lsquic_str2ver() when processing -o version flag 1001 - Remove unused CTIM and SRBF transport parameters 1002 - Disable QUIC versions Q037 and Q038 by default 1003 - Fix Windows compilation by including compat header file in 1004 lshpack.c 1005 - Address warnings produced by newer versions of gcc 1006 - Future-proof: turn off -Werror 1007 10082018-05-02 1009 1010 - [BUGFIX] Make lsquic_conn_quic_version() available 1011 - Switch to using ls-hpack 1.1 1012 - [BUGFIX] Do not ignore stream resets after receiving FIN 1013 10142018-04-27 1015 1016 - HPACK: do not allow header block to end with table size update. 1017 10182018-04-25 1019 1020 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 1021 packets. 1022 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 1023 - [BUGFIX] connections with blocked scheduled packets are not tickable 1024 for sending. 1025 - [BUGFIX] Conn is tickable if it wants to send a connection-level 1026 frame. 1027 10282018-04-23 1029 1030 - Fix busy loop: tickable must make progress. When connection is 1031 self-reporting as tickable, it must make progress when ticked. There 1032 are two issues: 1033 1. If there are buffered packets, the connection is only tickable if 1034 they can be sent out. 1035 2. A connection is tickable if there are streams on the servicing 1036 queue. When the tick occurs, we must service the stream 1037 independent of whether any packets are sent. 1038 - Fix assertion in pacer which can be incorrect under some 1039 conditions. 1040 - cmake: do not turn on address sanitizer if in Travis. 1041 10422018-04-20 1043 1044 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 1045 changes. 1046 10472018-04-19 1048 1049 - [BUGFIX] Add connection to Tickable Queue on stream write 1050 - cmake: use MSVC variable instead of trying to detect 1051 - engine: improve connection incref/decref logging 1052 - stream: don't ignore errors that may occur on triggered flush 1053 - connection: remove obsolete method 1054 - engine: indicate connection as tickable if previous call went 1055 over threshold 1056 10572018-04-09 1058 1059 [API Change, OPTIMIZATION] Only process conns that need to be processed 1060 1061 The API is simplified: do not expose the user code to several 1062 queues. A "connection queue" is now an internal concept. 1063 The user processes connections using the single function 1064 lsquic_engine_process_conns(). When this function is called, 1065 only those connections are processed that need to be processed. 1066 A connection needs to be processed when: 1067 1068 1. New incoming packets have been fed to the connection. 1069 2. User wants to read from a stream that is readable. 1070 3. User wants to write to a stream that is writeable. 1071 4. There are buffered packets that can be sent out. (This 1072 means that the user wrote to a stream outside of the 1073 lsquic library callback.) 1074 5. A control frame (such as BLOCKED) needs to be sent out. 1075 6. A stream needs to be serviced or delayed stream needs to 1076 be created. 1077 7. An alarm rings. 1078 8. Pacer timer expires. 1079 1080 To achieve this, the library places the connections into two 1081 priority queues (min heaps): 1082 1083 1. Tickable Queue; and 1084 2. Advisory Tick Time queue (ATTQ). 1085 1086 Each time lsquic_engine_process_conns() is called, the Tickable 1087 Queue is emptied. After the connections have been ticked, they are 1088 queried again: if a connection is not being closed, it is placed 1089 either in the Tickable Queue if it is ready to be ticked again or 1090 it is placed in the Advisory Tick Time Queue. It is assumed that 1091 a connection always has at least one timer set (the idle alarm). 1092 1093 The connections in the Tickable Queue are arranged in the least 1094 recently ticked order. This lets connections that have been quiet 1095 longer to get their packets scheduled first. 1096 1097 This change means that the library no longer needs to be ticked 1098 periodically. The user code can query the library when is the 1099 next tick event and schedule it exactly. When connections are 1100 processed, only the tickable connections are processed, not *all* 1101 the connections. When there are no tick events, it means that no 1102 timer event is necessary -- only the file descriptor READ event 1103 is active. 1104 1105 The following are improvements and simplifications that have 1106 been triggered: 1107 1108 - Queue of connections with incoming packets is gone. 1109 - "Pending Read/Write Events" Queue is gone (along with its 1110 history and progress checks). This queue has become the 1111 Tickable Queue. 1112 - The connection hash no longer needs to track the connection 1113 insertion order. 1114 11152018-04-02 1116 1117 - [FEATURE] Windows support 1118 1119 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 1120 11212018-03-09 1122 1123 - [OPTIMIZATION] Merge series of ACKs if possible 1124 1125 Parsed single-range ACK frames (that is the majority of frames) are 1126 saved in the connection and their processing is deferred until the 1127 connection is ticked. If several ACKs come in a series between 1128 adjacent ticks, we check whether the latest ACK is a strict superset 1129 of the saved ACK. If it is, the older ACK is not processed. 1130 1131 If ACK frames can be merged, they are merged and only one of them is 1132 either processed or saved. 1133 1134 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 1135 1136 Never generate a gap in the sent packet number sequence. This reduces 1137 the send history to a single number instead of potentially a series of 1138 packet ranges and thereby speeds up ACK verification. 1139 1140 By default, detecting a gap in the send history is not fatal: only a 1141 single warning is generated per connection. The connection can continue 1142 to operate even if the ACK verification code is not able to detect some 1143 inconsistencies. 1144 1145 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 1146 1147 The first part of struct lsquic_send_ctl now consists of members that 1148 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 1149 which is the normal case). To speed up reads and writes, we no longer 1150 try to save space by using 8- and 16-bit integers. Use regular integer 1151 width for everything. 1152 1153 - [OPTIMIZATION] Cache size of sent packet. 1154 1155 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 1156 1157 Instead of parsing our own ACK frames when packet has been acked, 1158 use the value saved in the packet_out structure when the ACK frame 1159 was generated. 1160 1161 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 1162 1163 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 1164 1165 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 1166 1167 - Fix: http_client: fix -I flag; switch assert() to abort() 1168 11692018-02-26 1170 - [API Change] lsquic_engine_connect() returns pointer to the connection 1171 object. 1172 - [API Change] Add lsquic_conn_get_engine() to get engine object from 1173 connection object. 1174 - [API Change] Add lsquic_conn_status() to query connection status. 1175 - [API Change] Add add lsquic_conn_set_ctx(). 1176 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 1177 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 1178 arrives. 1179 - [OPTIMIZATION] Do not compile expensive send controller sanity check 1180 by default. 1181 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 1182 - [OPTIMIZATION] Only make squeeze function call if necessary. 1183 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 1184 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 1185 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 1186 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 1187 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 1188 ordered. 1189 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 1190 - Fix: reset incoming streams that arrive after we send GOAWAY. 1191 - Fix: delay client on_new_conn() call until connection is fully set up. 1192 - Fixes to buffered packets logic: splitting, STREAM frame elision. 1193 - Fix: do not dispatch on_write callback if no packets are available. 1194 - Fix WINDOW_UPDATE send and resend logic. 1195 - Fix STREAM frame extension code. 1196 - Fix: Drop unflushed data when stream is reset. 1197 - Switch to tracking CWND using bytes rather than packets. 1198 - Fix TCP friendly adjustment in cubic. 1199 - Fix: do not generate invalid STOP_WAITING frames during high packet 1200 loss. 1201 - Pacer fixes. 1202 12032017-12-18 1204 1205 - Fix: better follow cubic curve after idle period 1206 - Fix: add missing parts to outgoing packet splitting code 1207 - Fix: compilation using gcc 4.8.4 1208 12092017-10-31 1210 1211 - Add APIs.txt -- describes LSQUIC APIs 1212 12132017-10-31 1214 1215 - [API Change] Sendfile-like functionality is gone. The stream no 1216 longer opens files and deals with file descriptors. (Among other 1217 things, this makes the code more portable.) Three writing functions 1218 are provided: 1219 1220 lsquic_stream_write 1221 lsquic_stream_writev 1222 lsquic_stream_writef (NEW) 1223 1224 lsquic_stream_writef() is given an abstract reader that has function 1225 pointers for size() and read() functions which the user can implement. 1226 This is the most flexible way. lsquic_stream_write() and 1227 lsquic_stream_writev() are now both implemented as wrappers around 1228 lsquic_stream_writef(). 1229 1230 - [OPTIMIZATION] When writing to stream, be it within or without the 1231 on_write() callback, place data directly into packet buffer, 1232 bypassing auxiliary data structures. This reduces amount of memory 1233 required, for the amount of data that can be written is limited 1234 by the congestion window. 1235 1236 To support writes outside the on_write() callback, we keep N 1237 outgoing packet buffers per connection which can be written to 1238 by any stream. One half of these are reserved for the highest 1239 priority stream(s), the other half for all other streams. This way, 1240 low-priority streams cannot write instead of high-priority streams 1241 and, on the other hand, low-priority streams get a chance to send 1242 their packets out. 1243 1244 The algorithm is as follows: 1245 1246 - When user writes to stream outside of the callback: 1247 - If this is the highest priority stream, place it onto the 1248 reserved N/2 queue or fail. 1249 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 1250 rather than N/2, allowing high-priority streams to write as 1251 much as can be sent.) 1252 - If the stream is not the highest priority, try to place the 1253 data onto the reserved N/2 queue or fail. 1254 - When tick occurs *and* more packets can be scheduled: 1255 - Transfer packets from the high N/2 queue to the scheduled 1256 queue. 1257 - If more scheduling is allowed: 1258 - Call on_write callbacks for highest-priority streams, 1259 placing resulting packets directly onto the scheduled queue. 1260 - If more scheduling is allowed: 1261 - Transfer packets from the low N/2 queue to the scheduled 1262 queue. 1263 - If more scheduling is allowed: 1264 - Call on_write callbacks for non-highest-priority streams, 1265 placing resulting packets directly onto the scheduled queue 1266 1267 The number N is currently 20, but it could be varied based on 1268 resource usage. 1269 1270 - If stream is created due to incoming headers, make headers readable 1271 from on_new. 1272 1273 - Outgoing packets are no longer marked non-writeable to prevent placing 1274 more than one STREAM frame from the same stream into a single packet. 1275 This property is maintained via code flow and an explicit check. 1276 Packets for stream data are allocated using a special function. 1277 1278 - STREAM frame elision is cheaper, as we only perform it if a reset 1279 stream has outgoing packets referencing it. 1280 1281 - lsquic_packet_out_t is smaller, as stream_rec elements are now 1282 inside a union. 1283 12842017-10-12 1285 1286 - Do not send RST_STREAM when stream is closed for reading 1287 - Raise maximum header size from 4K to 64K 1288 - Check header name and value lengths against maximum imposed by HPACK 1289 - Fix NULL dereference in stream flow controller 1290 12912017-10-09 1292 1293 - Hide handshake implementation behind a set of function pointers 1294 - Use monotonically increasing clock 1295 - Make sure that retx delay is not larger than the max of 60 seconds 1296 12972017-09-29 1298 1299 - A few fixes to code and README 1300 13012017-09-28 1302 1303 - Add support for Q041; drop support for Q040 1304 13052017-09-27 1306 1307 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 1308 13092017-09-26 1310 1311 - Add support for Mac OS 1312 - Add support for Raspberry Pi 1313 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 1314 13152017-09-22 1316 1317 - Initial release 1318