CHANGELOG revision 72585dc9
12020-04-29 2 - 2.14.5 3 - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match. 4 - [BUGFIX] Frame reader: skip headers if target stream is not found. 5 - [BUGFIX] Log message in QPACK decoder handler. 6 72020-04-24 8 - 2.14.4 9 - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams. 10 - [BUGFIX] IETF client: set correct flags on bidirectional streams. 11 - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned 12 streams. 13 - [BUGFIX] Do not call header callbacks after stream is closed. 14 - Use ls-qpack 2.1.1 15 162020-04-15 17 - 2.14.3 18 - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback. 19 - [BUGFIX] Use ls-hpack 2.1.1 20 - Improve stream code readability. 21 - Use ls-qpack 2.0.5 22 232020-04-08 24 - 2.14.2 25 - [BUGFIX] Use ls-qpack 2.0.4 26 - [BUGFIX] Honor max packet size on the client and when path changes. 27 - http_server: fix prepare_decode() function. 28 292020-04-07 30 - 2.14.1 31 - [BUGFIX] Place connections on tickable queue when sending is reenabled. 32 - [BUGFIX] A connection is tickable if it has unsent packets. 33 - [BUGFIX] Heed peer's max_packet_size transport parameter. 34 352020-03-30 36 - 2.14.0 37 - [API] Use lsxpack_header structure to send HTTP headers. 38 - [OPTIMIZATION] nocopy's readable_bytes() function. 39 - http_server: fix typo in error message 40 - Use ls-hpack 2.1.0. 41 - Use ls-qpack 2.0.0. 42 432020-03-23 44 - 2.13.3 45 - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked. 46 472020-03-13 48 - 2.13.2 49 - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode(). 50 512020-03-12 52 - 2.13.1 53 - [API] Use lsxpack_header structure to process incoming headers. 54 - [BUGFIX] Fix assertion when zero-padding Initial packet. 55 - [BUGFIX] Use idle timeout before we learn of peer's value. 56 - Use ls-hpack 2.0.1 -- has lsxpack_header changes. 57 - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not 58 used yet). 59 - Code cleanup: prefix exported functions with "lsquic_". 60 612020-03-02 62 - 2.12.0 63 - [FEATURE] QUIC timestamps extension. 64 - [API] New: ea_alpn that is used when not in HTTP mode. 65 - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC. 66 - [BUGFIX] Benign double-free -- issue #110. 67 - [BUGFIX] Printing of transport parameters. 68 692020-02-24 70 - 2.11.1 71 - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support. 72 - [FEATURE] Add experimental delayed ACKs extension. 73 - Drop support for Internet Draft 24. 74 - Code cleanup. 75 762020-02-14 77 - 2.10.6 78 - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error. 79 - [BUGFIX] Send gap warning due to missing poisoned packet. 80 - Stream unit test for scenario in issue #106. 81 822020-02-13 83 - 2.10.5 84 - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct 85 time. 86 - Refactor transport parameters module. 87 - Minor code cleanup. 88 892020-02-11 90 - 2.10.4 91 - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received. 92 - [BUGFIX] Don't treat garbage UDP padding as library error; ignore 93 it instead. 94 - [BUGFIX] Fix compilation on FreeBSD (missing header). 95 - Code cleanup: remove unnecessary #includes. 96 972020-01-31 98 - 2.10.3 99 - [BUGFIX] Cancel path responses and challenges on old path when 100 switching to new path 101 - Logging network path information. 102 1032020-01-30 104 - 2.10.2 105 - [BUGFIX] Do not delay ACKs for Initial and Handshake packets. 106 - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn 107 promotion. 108 - Logging improvements. 109 - http_client: discard data faster. 110 1112020-01-29 112 - 2.10.1 113 - [BUGFIX] Coalesced packets could get longer than normal packet 114 size. 115 - Add spin bit configuration option es_spin (-o spin=[01]). 116 - Disable spin bit in 1/16 of connections. 117 - Improve logging a bit. 118 1192020-01-28 120 - 2.10.0 121 - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support. 122 - [API] Drop support for ID-23. 123 - [BUGFIX] Set key phase bit on outgoing packets correctly. 124 - Code cleanup. 125 1262020-01-20 127 - 2.9.0 128 - [API] Drop support for Q039. 129 - Improve ACK-queuing logic. Send an ACK once in a while if 130 peer keeps on sending non-ack-eliciting packets. 131 - Improve Alt-Svc string: Q050 and later are not included in 132 the old-style "quic" string. 133 - Send stateless resets if connection could not be promoted. 134 - Schedule MAX_DATA if needed when DATA_BLOCKED is received. 135 - Use ls-qpack 0.11.2 -- needed for server push optimization. 136 - Code cleanup: handle some error cases, improve logging. 137 1382020-01-16 139 - 2.8.9 140 - [BUGFIX] Use ls-qpack 0.11.1 141 - [OPTIMIZATION] Generate random bytes in batches. 142 - Change loss_bits transport parameter ID to 0x1057 following 143 latest draft. 144 - Randomize period with which PINGs are sent to elicit ACKs. 145 - Some refactoring and code cleanup. 146 1472020-01-14 148 - 2.8.8 149 - [BUGFIX] Invalid read when parsing IETF transport parameters 150 (this was benign). 151 - [OPTIMIZATION] Frame bundling when using buffered packets in 152 IETF QUIC: a) flush QPACK decoder stream and b) include ACKs 153 in opportunistic fashion. 154 - Fix HTTP/3 framing unit test. 155 - Code cleanup. 156 1572020-01-09 158 - 2.8.7 159 - [BUGFIX] Initial packet size check for IETF mini conn applies to 160 UDP payload, not QUIC packet. 161 - Support old and new school loss_bits transport parameter. 162 - Use Q run length of 64 as suggested in the loss bits Draft. 163 - Undo square wave count when packet is delayed. 164 - Code cleanup; minor fixes. 165 1662020-01-06 167 - 2.8.5 168 - [HTTP3] Verify number of bytes in incoming DATA frames against 169 content-length. 170 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 171 decoder window. This addresses a potential attack whereby client 172 can cause the server to keep allocating memory. See Security 173 Considerations in the QPACK draft. 174 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 175 - [BUGFIX] Init IETF connection flow controller using correct setting. 176 - [BUGFIX] Fix unintended sign extension when removing header protection. 177 - Code cleanup and minor fixes. 178 1792019-12-30 180 - 2.8.1 181 - [FEATURE] Use occasional packet number gaps to detect optimistic 182 ACK attacks. 183 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 184 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 185 ACK frames. 186 - IETF QUIC: use RTT estimate in ack timeout calculation. 187 - IETF handshake: abort conn when unexpected errors occur. 188 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 189 - Server: enforce 1200 byte Initial minimum packet size. 190 - [CLEANUP] Remove code to disable gQUIC crypto. 191 - [CLEANUP] Remove n_timestamps from ACK info struct. 192 - Optimize driver: reuse previous ancillary message when possible. 193 1942019-12-23 195 - 2.8.0 196 - [FEATURE] Add support for Q050. 197 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 198 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 199 logging. 200 2012019-12-18 202 - 2.7.3 203 - [DEBUG] Further dedup next advisory tick messages when reason is 204 the same. 205 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 206 GitHub bug #94. 207 - Use Cubic by default again instead of BBR, as it delivers more 208 consistent performance. 209 2102019-12-11 211 - 2.7.2 212 - [BUGFIX] Send controller: update scheduled bytes when DCID length 213 changes (IETF client). 214 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 215 that we use loss chains. 216 - [PORTABILITY] Fix build on Alpine Linux. 217 - [PORTABILITY] Fix build using XCode. 218 - Client initial DCID length: use RAND_bytes() instead of rand(3). 219 - Add unit tests for connection min heap. 220 - [DEBUG] Log CID in gQUIC handshake module 221 - [DEBUG] Turn on extra checks for IETF client send controller. 222 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 223 - [DEBUG] QPACK decoder handler: log header error code. 224 2252019-12-05 226 - 2.7.1 227 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 228 ignore_init() makes an assumption that the send controller has access 229 to all outgoing packets. This change wraps a few IETF full connection 230 methods to delay calling ignore_init() until the engine returns all 231 outgoing packets that were batched. 232 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 233 This needs to be done because the value of errno may be lost on 234 some platforms. 235 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 236 - [BUGFIX] Do not cancel header block processing after failure, as 237 QPACK releases the reference in that case. 238 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 239 - Several small improvements to the test server. 240 2412019-11-27 242 - 2.7.0 243 - [API, FEATURE] Close connection immediately when ea_packets_out() 244 fails with errno != EAGAIN. The API change is that errno is now 245 examined. Make sure to set it if using something other than 246 sendmsg() to send packets. 247 - [CLEANUP] Immediate close logic in IETF full conn. 248 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 249 2502019-11-22 251 - 2.6.7 252 - [FEATURE] Implement the QL extension (offered by default). 253 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 254 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 255 - [DEBUG] Turn on debug message for next advisory tick. 256 2572019-11-20 258 - 2.6.6 259 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 260 - [BUGFIX] Truncate log messages instead of throwing them away. 261 2622019-11-15 263 - 2.6.5 264 - [BUGFIX] High priority buffered packet queue length. 265 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 266 2672019-11-12 268 - 2.6.3 269 - [BUGFIX] Close DATA frames with empty payload correctly. 270 2712019-11-11 272 - 2.6.2 273 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 274 packets. 275 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 276 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 277 connection. 278 - [BUGFIX] Client: don't send duplicate reset tokens. 279 - [BUGFIX] Remove invalid assertion in H3 framing code. 280 - Silence a warning in send ctl by restructuring switch() statement. 281 2822019-11-08 283 - 2.6.1 284 - [BUGFIX] set retry token on all resubmitted packets. 285 - Event log: log sent packet flags. In particular, this allows one 286 to see whether token was sent. 287 - Don't migrate client if es_allow_migration is false. 288 2892019-11-07 290 - 2.6.0 291 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 292 2932019-11-07 294 - 2.5.2 295 - [BUGFIX] argument order to gQUIC client constructor. Regression 296 introduced in 2.5.0. 297 - [BUGFIX] split buffered packet error recovery: destroy the correct 298 packet. 299 3002019-11-04 301 - 2.5.1 302 - [BUGFIX] Fix double-free when emptying a packet number space. 303 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 304 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 305 verneg packets (regression introduced in 2.5.0). 306 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 307 - [OPTIMIZATION] http_server: compile regexes only once. 308 3092019-10-31 310 - 2.5.0 311 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 312 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 313 - [BUGFIX] Don't evict streams from priority iterator if there is 314 only one queue. 315 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 316 - Use ls-qpack v0.10.7. 317 3182019-10-24 319 - 2.4.10 320 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 321 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 322 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 323 values are not unique). 324 - [BUGFIX] Always set the idle alarm in IETF connection so that it 325 can time out. 326 - Use ls-qpack v0.10.6, as it silences some warnings. 327 3282019-10-21 329 - 2.4.8 330 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 331 3322019-10-15 333 - 2.4.7 334 - Add echo client and server to the distibution. 335 - Add MD5 client and server to the distibution. 336 - Fix http_client: check command-line arguments better, prevent crash. 337 - Fix IETF conn: can_write_ack() should only care about APP PNS. 338 - Client: delay stream creation until handshake succeds. 339 - Reset HTTP stream whose write end is closed prematurely. 340 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 341 - Log reason why engine is tickable. 342 3432019-10-11 344 - 2.4.6 345 - Minor code cleanup and logging improvements. 346 - Server and client programs: include library version (e.g. 2.4.6) 347 into `server' and `user-agent' headers. 348 3492019-10-08 350 - 2.4.5 351 - [OPTIMIZATION]: flush encoder stream only when necessary. 352 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 353 - [BUGFIX] Typo in IETF conn SETTINGS writer. 354 - Use latest BoringSSL. 355 3562019-10-08 357 - 2.4.4 358 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 359 - [BUGFIX] NULL dereference when H3 frame header would be split. 360 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 361 - [BUGFIX] Allow PING frames in IETF mini conn. 362 - [BUGFIX] Mini conns: don't send any packets after receiving 363 CONNECTION_CLOSE. 364 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 365 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 366 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 367 valid stream number). 368 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 369 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 370 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 371 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 372 - Update ls-qpack to v0.10.1. 373 3742019-09-30 375 - 2.4.3 376 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 377 For example, h3-Q043. Chrome will switch to using this format at 378 some point in the future. 379 - [BUGFIX] Send correct value in max_streams_uni transport param 380 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 381 to 0xFFFFFFFF 382 3832019-09-23 384 - 2.4.2 385 - [BUGFIX] H3 framing: fix zero-byte write when space is available 386 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 387 is closed 388 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 389 - [BUGFIX] Fix use-after-free in IETF full conn 390 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 391 SSL object and crypto streams. 392 3932019-09-18 394 - 2.4.0 395 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 396 3972019-09-13 398 - 2.3.1 399 - [BUGFIX] Fix memory leaks 400 - [BUGFIX] Fix unit tests 401 4022019-09-12 403 - 2.3.0 404 - [FEATURE] BBR congestion control is on by default 405 - [BUGFIX] BBR app-limited logic 406 - [BUGFIX] Fix uninitialized warnings in IETF 407 - [BUGFIX] Update ls-qpack to v0.9.14 408 - [CLEANUP] Code cleanup 409 4102019-09-11 411 - 2.2.0 412 - [FEATURE] Server code is included in the library 413 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 414 4152019-05-13 416 - 1.21.2 417 - [OPTIMIZATION] HPACK: use history to improve compression performance 418 4192019-05-06 420 - 1.21.1 421 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 422 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 423 search static and dynamic tables. 424 4252019-04-12 426 - 1.21.0 427 - [FEATURE] Add qlog log module. 428 4292019-04-01 430 - 1.20.0 431 - [FEATURE] Add support for Q046. 432 4332019-03-19 434 - 1.19.6 435 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 436 send. ACK frames placed in packets in buffered queues (optimization 437 introduced in 1.17.15) can be preceded by an ACK frame generated later. 438 In this case, the older ACK frame should not be sent out, as Chromium- 439 based servers flags decrease in the ACK frame's Largest Observed value 440 as an error. 441 4422019-03-05 443 - 1.19.5 444 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 445 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 446 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 447 4482019-02-25 449 - 1.19.4 450 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 451 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 452 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 453 4542019-02-18 455 - 1.19.3 456 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 457 packet number encoding does not exist in Q044. This fixes a 458 regression introduced in '[BUGFIX] Buffered packets can contain 459 ACK frames' -- we need to keep QUIC version in mind when selecting 460 the longest possible packet number encoding used for the buffered 461 packet that carries the ACK. 462 - [BUGFIX] Do not increase CWND when timeout occurs. 463 - http_client: support setting handshake timeout on command line. 464 Use -o handshake_to=timeout. 465 - http_client: use -k to connect UDP socket to pick up ICMP errors. 466 - http_client: allow pathless mode, when only handshake is performed 467 without issuing any requests. This can be done by simply not 468 specifying a -p flag on the command line. 469 4702019-02-11 471 - 1.19.2 472 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 473 - [BUGFIX] Version checking in zero_rtt deserialize function. 474 4752019-02-04 476 - 1.19.1 477 - [BUGFIX] Fix Windows build. 478 4792019-02-04 480 - 1.19.0 481 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 482 information; it can be supplied to a subsequent connect() call. 483 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 484 - [BUGFIX] Resuscitate the Windows build. 485 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 486 - [BUGFIX] Buffered packets can contain ACK frames. 487 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 488 - [BUGFIX] Fix potential null dereference when realloc fails. 489 - cmake: simplify build configuration. 490 4912019-01-28 492 - 1.18.0 493 - [API Change] Can specify clock granularity in engine settings. 494 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 495 2018-04-09, it is not necessary to try to approximate the next tick 496 time in the pacer: it can use fix clock granularity specified by 497 the user. 498 - [BUGFIX] Do not tick constantly before handshake is done. 499 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 500 if we cannot allocate *more* packets, we could still be able to write 501 to one already allocated. 502 - [BUGFIX] Do not schedule pacer if there are no lost packets. 503 5042019-01-17 505 - 1.17.15 506 - [BUGFIX] http_client: make sure only one read per on_read() callback 507 is performed in the header conversion bypass (-B) mode. 508 - http_client: with -E, assign random priority when stream is created. 509 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 510 buffered packet if an ACK is queued. This reduces the number of 511 standalone ACK packets. 512 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 513 stream into an outgoing packet. This change minimizes the number of 514 buffered packets required to store several small HTTP messages by 515 virtue of allowing more than one STREAM frame from HEADERS stream in 516 the same packet. 517 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 518 causes the headers to be written to the same buffered packet queue, 519 thereby improving packet utilization, especially for small HTTP 520 messages. 521 5222019-01-16 523 - 1.17.14 524 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 525 time to download, requests per seconds, and bandwidth. See -t flag. 526 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 527 - [BUGFIX] http_client: do not display cert chain before each request. 528 Now this is only done once per connection, if the handshake is 529 successful and -a option is given. 530 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 531 stream is scheduled to be closed after on_read() callback returns, 532 close it immediately instead of waiting until the end of the tick. 533 If client creates new request from on_close() event, they will be 534 processed in the same tick instead of waiting for the next one. 535 - [BUGFIX] HEADERS stream is critical: always treat it with highest 536 priority. 537 5382019-01-10 539 - 1.17.12 540 - [FEATURE] http_client can now issue parallel requests in the context 541 of a single connection. See -w option. 542 5432019-01-03 544 - 1.17.11 545 - Fix strict aliasing warning in optimized compilation. 546 5472018-12-27 548 - 1.17.10 549 - Fix the example program to be able to use parallel connections 550 again. (See the -n argument.) 551 5522018-12-18 553 - 1.17.9 554 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 555 5562018-12-10 557 - 1.17.8 558 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 559 5602018-12-03 561 - 1.17.7 562 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 563 This prevented PING from ever being sent. 564 5652018-11-29 566 - 1.17.6 567 - Add failsafe: resume sending packets after some time 568 569 The change puts a 1-second limit on the amount of time the engine 570 will not send packets after some packets are delayed. This makes 571 the library robust in case the user does not unblock the engine 572 explicitly using lsquic_engine_send_unsent_packets() call. 573 574 - [BUGFIX] Handle corner cases in send controller when packets are 575 a) delayed or b) dropped during repackaging. 576 - [BUGFIX] Memory leak: destroy buffered packets during controller 577 cleanup. 578 5792018-11-16 580 - 1.17.3 581 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 582 5832018-10-19 584 - 1.17.2 585 - [BUGFIX] Memory leak in test_frame_rw unit test. 586 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 587 flags. (Only a problem in unit tests -- benign otherwise.) 588 5892018-10-16 590 - 1.17.0 591 - [API Change] Packet out Memory Interface (PMI) update: 592 - Split PMI pool return into pmi_release and pmi_return 593 - PMI callbacks take peer_ctx and is_ipv6 arguments 594 - [BUGFIX] Fix use-after-free when certificate is updated 595 - Silence gcc warning in optimized mode by performing useless 596 initialization 597 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 598 DEVEL_MODE 599 6002018-10-03 601 - 1.16.0 602 - [API Change] Add lsquic_conn_n_avail_streams() 603 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 604 6052018-09-27 606 - 1.15.0 607 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 608 - [BUGFIX] free uncompressed headers correctly when error occurs 609 6102018-09-12 611 - 1.14.3 612 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 613 - [BUGFIX] Drop packets that would become empty due to repackaging. 614 Packets on the scheduled queue may be marked for repackaging. 615 Frames such as ACK frame that are never resent are removed from 616 repackaged packets. We must check that the newly repackaged packet 617 would not be empty. If it would be, it is destroyed instead and 618 the next packet on the scheduled queue is used. Note that this 619 change only affects the logic to return the next packet to be sent. 620 Lost packets that are being rescheduled are already processed in 621 this fashion. 622 - Byteswap CID before logging it - this makes it match Chrome CIDs. 623 (Except Q035, which is the last little-endian GQUIC version we 624 support.) 625 6262018-09-06 627 - 1.14.0 628 - [API Change] Disable packet sending if full batch cannot be sent 629 If lsquic_packets_out_f() cannot send the whole batch, disable 630 packet sending until lsquic_engine_send_unsent_packets() is called. 631 - [BUGFIX] Handle case when STREAM frame does not fit. 632 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 633 may send overlapping STREAM frames even if using versions older 634 than Q043. 635 - Custom header set fixes: 636 - set "FIN reached" flag when custom header with FIN flag is 637 claimed; 638 - do not return custom header set for a reset stream. 639 6402018-08-27 641 642 - 1.13.0 643 - [FEATURE, API Change] Add ability to create custom header set 644 objects via callbacks. This avoids reading and re-parsing 645 headers from the stream. 646 6472018-08-27 648 649 - 1.12.4 650 - Fix memory leak when engine is destroyed 651 - Fix memory leak in http_client 652 - Fix gcc warning in unit tests 653 6542018-08-22 655 656 - 1.12.3 657 - [BUGFIX] Fix duplicate STREAM frame detection 658 6592018-08-20 660 661 - 1.12.2 662 - [BUGFIX] Update count of scheduled bytes when adjusting size of 663 an already-scheduled packet. 664 - Emit info instead of warning messages when stream is used in 665 unexpected ways. 666 6672018-08-17 668 669 - 1.12.0 670 - [FEATURE, API Change] Add support for certificate verification 671 6722018-08-16 673 674 - 1.11.1 675 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 676 6772018-08-15 678 679 - 1.11.0 680 - [FEATURE] Add support for Q044. 681 6822018-08-09 683 684 - 1.10.2 685 - [BUGFIX] Don't go over limit when creating delayed streams 686 6872018-07-10 688 689 - 1.10.1 690 - [BUGFIX] process connections after each batch of packets is read 691 This avoids a problem of accumulating a very large list of packets 692 (possible when speeds are high and socket's receive buffer is large) 693 and processing it all at once. 694 - If glibc is older than 2.17, link with rt. This is necessary for 695 clock_getres(2). 696 - Add version macros to lsquic.h; remove unnecessary includes. 697 6982018-06-13 699 700 - [BUGFIX] allow multiple parallel connections by default 701 702 Use the original method of tracking connections by CIDs by default. 703 If zero-sized CID support is turned on, connections are tracked by 704 the address. A new connection is not created if another connection 705 is using the same network address 706 7072018-05-30 708 709 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 710 7112018-05-24 712 713 - Close connection properly when packet encryption fails 714 7152018-05-23 716 717 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 718 7192018-05-21 720 721 - [API Change] Add optional callback to call when handshake is done 722 - [API Change, BUGFIX] After send failure, wait until transport available 723 7242018-05-18 725 726 - [API] Expose useful lsquic_ver2str[] in lsquic.h 727 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 728 - Improve checks of number of incoming streams limit and associated 729 error reporting. 730 - [BUGFIX] Command-line option `-6` now works correctly. 731 7322018-05-16 733 734 - [FEATURE] DNS resolution 735 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 736 - http_client: fix priority range generated by -E flag 737 7382018-05-09 739 740 - [FEATURE] Add support for Q043. 741 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 742 - Fix typo in debug message. 743 - Fix code indentation. 744 - Add /* fallthru */ comment to stop newer gcc from complaining. 745 - Logger: fix compilation of optimized Windows build. 746 7472018-05-04 748 749 - [FEATURE] Add support for Q042. 750 - Remove comment: MSPC is obsolete (no code changes) 751 - Prog: use lsquic_str2ver() when processing -o version flag 752 - Remove unused CTIM and SRBF transport parameters 753 - Disable QUIC versions Q037 and Q038 by default 754 - Fix Windows compilation by including compat header file in 755 lshpack.c 756 - Address warnings produced by newer versions of gcc 757 - Future-proof: turn off -Werror 758 7592018-05-02 760 761 - [BUGFIX] Make lsquic_conn_quic_version() available 762 - Switch to using ls-hpack 1.1 763 - [BUGFIX] Do not ignore stream resets after receiving FIN 764 7652018-04-27 766 767 - HPACK: do not allow header block to end with table size update. 768 7692018-04-25 770 771 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 772 packets. 773 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 774 - [BUGFIX] connections with blocked scheduled packets are not tickable 775 for sending. 776 - [BUGFIX] Conn is tickable if it wants to send a connection-level 777 frame. 778 7792018-04-23 780 781 - Fix busy loop: tickable must make progress. When connection is 782 self-reporting as tickable, it must make progress when ticked. There 783 are two issues: 784 1. If there are buffered packets, the connection is only tickable if 785 they can be sent out. 786 2. A connection is tickable if there are streams on the servicing 787 queue. When the tick occurs, we must service the stream 788 independent of whether any packets are sent. 789 - Fix assertion in pacer which can be incorrect under some 790 conditions. 791 - cmake: do not turn on address sanitizer if in Travis. 792 7932018-04-20 794 795 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 796 changes. 797 7982018-04-19 799 800 - [BUGFIX] Add connection to Tickable Queue on stream write 801 - cmake: use MSVC variable instead of trying to detect 802 - engine: improve connection incref/decref logging 803 - stream: don't ignore errors that may occur on triggered flush 804 - connection: remove obsolete method 805 - engine: indicate connection as tickable if previous call went 806 over threshold 807 8082018-04-09 809 810 [API Change, OPTIMIZATION] Only process conns that need to be processed 811 812 The API is simplified: do not expose the user code to several 813 queues. A "connection queue" is now an internal concept. 814 The user processes connections using the single function 815 lsquic_engine_process_conns(). When this function is called, 816 only those connections are processed that need to be processed. 817 A connection needs to be processed when: 818 819 1. New incoming packets have been fed to the connection. 820 2. User wants to read from a stream that is readable. 821 3. User wants to write to a stream that is writeable. 822 4. There are buffered packets that can be sent out. (This 823 means that the user wrote to a stream outside of the 824 lsquic library callback.) 825 5. A control frame (such as BLOCKED) needs to be sent out. 826 6. A stream needs to be serviced or delayed stream needs to 827 be created. 828 7. An alarm rings. 829 8. Pacer timer expires. 830 831 To achieve this, the library places the connections into two 832 priority queues (min heaps): 833 834 1. Tickable Queue; and 835 2. Advisory Tick Time queue (ATTQ). 836 837 Each time lsquic_engine_process_conns() is called, the Tickable 838 Queue is emptied. After the connections have been ticked, they are 839 queried again: if a connection is not being closed, it is placed 840 either in the Tickable Queue if it is ready to be ticked again or 841 it is placed in the Advisory Tick Time Queue. It is assumed that 842 a connection always has at least one timer set (the idle alarm). 843 844 The connections in the Tickable Queue are arranged in the least 845 recently ticked order. This lets connections that have been quiet 846 longer to get their packets scheduled first. 847 848 This change means that the library no longer needs to be ticked 849 periodically. The user code can query the library when is the 850 next tick event and schedule it exactly. When connections are 851 processed, only the tickable connections are processed, not *all* 852 the connections. When there are no tick events, it means that no 853 timer event is necessary -- only the file descriptor READ event 854 is active. 855 856 The following are improvements and simplifications that have 857 been triggered: 858 859 - Queue of connections with incoming packets is gone. 860 - "Pending Read/Write Events" Queue is gone (along with its 861 history and progress checks). This queue has become the 862 Tickable Queue. 863 - The connection hash no longer needs to track the connection 864 insertion order. 865 8662018-04-02 867 868 - [FEATURE] Windows support 869 870 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 871 8722018-03-09 873 874 - [OPTIMIZATION] Merge series of ACKs if possible 875 876 Parsed single-range ACK frames (that is the majority of frames) are 877 saved in the connection and their processing is deferred until the 878 connection is ticked. If several ACKs come in a series between 879 adjacent ticks, we check whether the latest ACK is a strict superset 880 of the saved ACK. If it is, the older ACK is not processed. 881 882 If ACK frames can be merged, they are merged and only one of them is 883 either processed or saved. 884 885 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 886 887 Never generate a gap in the sent packet number sequence. This reduces 888 the send history to a single number instead of potentially a series of 889 packet ranges and thereby speeds up ACK verification. 890 891 By default, detecting a gap in the send history is not fatal: only a 892 single warning is generated per connection. The connection can continue 893 to operate even if the ACK verification code is not able to detect some 894 inconsistencies. 895 896 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 897 898 The first part of struct lsquic_send_ctl now consists of members that 899 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 900 which is the normal case). To speed up reads and writes, we no longer 901 try to save space by using 8- and 16-bit integers. Use regular integer 902 width for everything. 903 904 - [OPTIMIZATION] Cache size of sent packet. 905 906 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 907 908 Instead of parsing our own ACK frames when packet has been acked, 909 use the value saved in the packet_out structure when the ACK frame 910 was generated. 911 912 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 913 914 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 915 916 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 917 918 - Fix: http_client: fix -I flag; switch assert() to abort() 919 9202018-02-26 921 - [API Change] lsquic_engine_connect() returns pointer to the connection 922 object. 923 - [API Change] Add lsquic_conn_get_engine() to get engine object from 924 connection object. 925 - [API Change] Add lsquic_conn_status() to query connection status. 926 - [API Change] Add add lsquic_conn_set_ctx(). 927 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 928 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 929 arrives. 930 - [OPTIMIZATION] Do not compile expensive send controller sanity check 931 by default. 932 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 933 - [OPTIMIZATION] Only make squeeze function call if necessary. 934 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 935 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 936 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 937 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 938 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 939 ordered. 940 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 941 - Fix: reset incoming streams that arrive after we send GOAWAY. 942 - Fix: delay client on_new_conn() call until connection is fully set up. 943 - Fixes to buffered packets logic: splitting, STREAM frame elision. 944 - Fix: do not dispatch on_write callback if no packets are available. 945 - Fix WINDOW_UPDATE send and resend logic. 946 - Fix STREAM frame extension code. 947 - Fix: Drop unflushed data when stream is reset. 948 - Switch to tracking CWND using bytes rather than packets. 949 - Fix TCP friendly adjustment in cubic. 950 - Fix: do not generate invalid STOP_WAITING frames during high packet 951 loss. 952 - Pacer fixes. 953 9542017-12-18 955 956 - Fix: better follow cubic curve after idle period 957 - Fix: add missing parts to outgoing packet splitting code 958 - Fix: compilation using gcc 4.8.4 959 9602017-10-31 961 962 - Add APIs.txt -- describes LSQUIC APIs 963 9642017-10-31 965 966 - [API Change] Sendfile-like functionality is gone. The stream no 967 longer opens files and deals with file descriptors. (Among other 968 things, this makes the code more portable.) Three writing functions 969 are provided: 970 971 lsquic_stream_write 972 lsquic_stream_writev 973 lsquic_stream_writef (NEW) 974 975 lsquic_stream_writef() is given an abstract reader that has function 976 pointers for size() and read() functions which the user can implement. 977 This is the most flexible way. lsquic_stream_write() and 978 lsquic_stream_writev() are now both implemented as wrappers around 979 lsquic_stream_writef(). 980 981 - [OPTIMIZATION] When writing to stream, be it within or without the 982 on_write() callback, place data directly into packet buffer, 983 bypassing auxiliary data structures. This reduces amount of memory 984 required, for the amount of data that can be written is limited 985 by the congestion window. 986 987 To support writes outside the on_write() callback, we keep N 988 outgoing packet buffers per connection which can be written to 989 by any stream. One half of these are reserved for the highest 990 priority stream(s), the other half for all other streams. This way, 991 low-priority streams cannot write instead of high-priority streams 992 and, on the other hand, low-priority streams get a chance to send 993 their packets out. 994 995 The algorithm is as follows: 996 997 - When user writes to stream outside of the callback: 998 - If this is the highest priority stream, place it onto the 999 reserved N/2 queue or fail. 1000 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 1001 rather than N/2, allowing high-priority streams to write as 1002 much as can be sent.) 1003 - If the stream is not the highest priority, try to place the 1004 data onto the reserved N/2 queue or fail. 1005 - When tick occurs *and* more packets can be scheduled: 1006 - Transfer packets from the high N/2 queue to the scheduled 1007 queue. 1008 - If more scheduling is allowed: 1009 - Call on_write callbacks for highest-priority streams, 1010 placing resulting packets directly onto the scheduled queue. 1011 - If more scheduling is allowed: 1012 - Transfer packets from the low N/2 queue to the scheduled 1013 queue. 1014 - If more scheduling is allowed: 1015 - Call on_write callbacks for non-highest-priority streams, 1016 placing resulting packets directly onto the scheduled queue 1017 1018 The number N is currently 20, but it could be varied based on 1019 resource usage. 1020 1021 - If stream is created due to incoming headers, make headers readable 1022 from on_new. 1023 1024 - Outgoing packets are no longer marked non-writeable to prevent placing 1025 more than one STREAM frame from the same stream into a single packet. 1026 This property is maintained via code flow and an explicit check. 1027 Packets for stream data are allocated using a special function. 1028 1029 - STREAM frame elision is cheaper, as we only perform it if a reset 1030 stream has outgoing packets referencing it. 1031 1032 - lsquic_packet_out_t is smaller, as stream_rec elements are now 1033 inside a union. 1034 10352017-10-12 1036 1037 - Do not send RST_STREAM when stream is closed for reading 1038 - Raise maximum header size from 4K to 64K 1039 - Check header name and value lengths against maximum imposed by HPACK 1040 - Fix NULL dereference in stream flow controller 1041 10422017-10-09 1043 1044 - Hide handshake implementation behind a set of function pointers 1045 - Use monotonically increasing clock 1046 - Make sure that retx delay is not larger than the max of 60 seconds 1047 10482017-09-29 1049 1050 - A few fixes to code and README 1051 10522017-09-28 1053 1054 - Add support for Q041; drop support for Q040 1055 10562017-09-27 1057 1058 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 1059 10602017-09-26 1061 1062 - Add support for Mac OS 1063 - Add support for Raspberry Pi 1064 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 1065 10662017-09-22 1067 1068 - Initial release 1069