CHANGELOG revision 8c1565cb
12020-01-30 2 - 2.10.2 3 - [BUGFIX] Do not delay ACKs for Initial and Handshake packets. 4 - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn 5 promotion. 6 - Logging improvements. 7 - http_client: discard data faster. 8 92020-01-29 10 - 2.10.1 11 - [BUGFIX] Coalesced packets could get longer than normal packet 12 size. 13 - Add spin bit configuration option es_spin (-o spin=[01]). 14 - Disable spin bit in 1/16 of connections. 15 - Improve logging a bit. 16 172020-01-28 18 - 2.10.0 19 - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support. 20 - [API] Drop support for ID-23. 21 - [BUGFIX] Set key phase bit on outgoing packets correctly. 22 - Code cleanup. 23 242020-01-20 25 - 2.9.0 26 - [API] Drop support for Q039. 27 - Improve ACK-queuing logic. Send an ACK once in a while if 28 peer keeps on sending non-ack-eliciting packets. 29 - Improve Alt-Svc string: Q050 and later are not included in 30 the old-style "quic" string. 31 - Send stateless resets if connection could not be promoted. 32 - Schedule MAX_DATA if needed when DATA_BLOCKED is received. 33 - Use ls-qpack 0.11.2 -- needed for server push optimization. 34 - Code cleanup: handle some error cases, improve logging. 35 362020-01-16 37 - 2.8.9 38 - [BUGFIX] Use ls-qpack 0.11.1 39 - [OPTIMIZATION] Generate random bytes in batches. 40 - Change loss_bits transport parameter ID to 0x1057 following 41 latest draft. 42 - Randomize period with which PINGs are sent to elicit ACKs. 43 - Some refactoring and code cleanup. 44 452020-01-14 46 - 2.8.8 47 - [BUGFIX] Invalid read when parsing IETF transport parameters 48 (this was benign). 49 - [OPTIMIZATION] Frame bundling when using buffered packets in 50 IETF QUIC: a) flush QPACK decoder stream and b) include ACKs 51 in opportunistic fashion. 52 - Fix HTTP/3 framing unit test. 53 - Code cleanup. 54 552020-01-09 56 - 2.8.7 57 - [BUGFIX] Initial packet size check for IETF mini conn applies to 58 UDP payload, not QUIC packet. 59 - Support old and new school loss_bits transport parameter. 60 - Use Q run length of 64 as suggested in the loss bits Draft. 61 - Undo square wave count when packet is delayed. 62 - Code cleanup; minor fixes. 63 642020-01-06 65 - 2.8.5 66 - [HTTP3] Verify number of bytes in incoming DATA frames against 67 content-length. 68 - [HTTP3] Stop issuing streams credits if peer stops opening QPACK 69 decoder window. This addresses a potential attack whereby client 70 can cause the server to keep allocating memory. See Security 71 Considerations in the QPACK draft. 72 - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later. 73 - [BUGFIX] Init IETF connection flow controller using correct setting. 74 - [BUGFIX] Fix unintended sign extension when removing header protection. 75 - Code cleanup and minor fixes. 76 772019-12-30 78 - 2.8.1 79 - [FEATURE] Use occasional packet number gaps to detect optimistic 80 ACK attacks. 81 - [BUGFIX] Q050 client: all packet numbers are in the App PNS. 82 - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range 83 ACK frames. 84 - IETF QUIC: use RTT estimate in ack timeout calculation. 85 - IETF handshake: abort conn when unexpected errors occur. 86 - Use PING rather than MAX_DATA frames to elicit ACKs from peer. 87 - Server: enforce 1200 byte Initial minimum packet size. 88 - [CLEANUP] Remove code to disable gQUIC crypto. 89 - [CLEANUP] Remove n_timestamps from ACK info struct. 90 - Optimize driver: reuse previous ancillary message when possible. 91 922019-12-23 93 - 2.8.0 94 - [FEATURE] Add support for Q050. 95 - [OPTIMIZATION] Reduce mallocs in gQUIC handshake. 96 - [BUGFIX] Disable redo of failed STREAM frame insertion with debug 97 logging. 98 992019-12-18 100 - 2.7.3 101 - [DEBUG] Further dedup next advisory tick messages when reason is 102 the same. 103 - [BUGFIX] Update size of `a` array in TP struct. Fixes (benign) 104 GitHub bug #94. 105 - Use Cubic by default again instead of BBR, as it delivers more 106 consistent performance. 107 1082019-12-11 109 - 2.7.2 110 - [BUGFIX] Send controller: update scheduled bytes when DCID length 111 changes (IETF client). 112 - [BUGFIX] Drop alarm check from sanity test. It no longer works now 113 that we use loss chains. 114 - [PORTABILITY] Fix build on Alpine Linux. 115 - [PORTABILITY] Fix build using XCode. 116 - Client initial DCID length: use RAND_bytes() instead of rand(3). 117 - Add unit tests for connection min heap. 118 - [DEBUG] Log CID in gQUIC handshake module 119 - [DEBUG] Turn on extra checks for IETF client send controller. 120 - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer. 121 - [DEBUG] QPACK decoder handler: log header error code. 122 1232019-12-05 124 - 2.7.1 125 - [BUGFIX] client: don't call ignore_init() in middle of batch send. 126 ignore_init() makes an assumption that the send controller has access 127 to all outgoing packets. This change wraps a few IETF full connection 128 methods to delay calling ignore_init() until the engine returns all 129 outgoing packets that were batched. 130 - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them. 131 This needs to be done because the value of errno may be lost on 132 some platforms. 133 - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes. 134 - [BUGFIX] Do not cancel header block processing after failure, as 135 QPACK releases the reference in that case. 136 - [CLEANUP] IETF encrypt: replace assert(0) with a warning. 137 - Several small improvements to the test server. 138 1392019-11-27 140 - 2.7.0 141 - [API, FEATURE] Close connection immediately when ea_packets_out() 142 fails with errno != EAGAIN. The API change is that errno is now 143 examined. Make sure to set it if using something other than 144 sendmsg() to send packets. 145 - [CLEANUP] Immediate close logic in IETF full conn. 146 - [CLEANUP] Fix bogus warning about uninitialized `pair' variable. 147 1482019-11-22 149 - 2.6.7 150 - [FEATURE] Implement the QL extension (offered by default). 151 - [BUGFIX] Abort when encountering unexpected HTTP/3 frames. 152 - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly. 153 - [DEBUG] Turn on debug message for next advisory tick. 154 1552019-11-20 156 - 2.6.6 157 - [BUGFIX] Using HTTP/3 to HTTP/1.x converter. 158 - [BUGFIX] Truncate log messages instead of throwing them away. 159 1602019-11-15 161 - 2.6.5 162 - [BUGFIX] High priority buffered packet queue length. 163 - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds. 164 1652019-11-12 166 - 2.6.3 167 - [BUGFIX] Close DATA frames with empty payload correctly. 168 1692019-11-11 170 - 2.6.2 171 - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular 172 packets. 173 - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets. 174 - [BUGFIX] Truncate ACK frame rather instead of aborting IETF 175 connection. 176 - [BUGFIX] Client: don't send duplicate reset tokens. 177 - [BUGFIX] Remove invalid assertion in H3 framing code. 178 - Silence a warning in send ctl by restructuring switch() statement. 179 1802019-11-08 181 - 2.6.1 182 - [BUGFIX] set retry token on all resubmitted packets. 183 - Event log: log sent packet flags. In particular, this allows one 184 to see whether token was sent. 185 - Don't migrate client if es_allow_migration is false. 186 1872019-11-07 188 - 2.6.0 189 - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support 190 1912019-11-07 192 - 2.5.2 193 - [BUGFIX] argument order to gQUIC client constructor. Regression 194 introduced in 2.5.0. 195 - [BUGFIX] split buffered packet error recovery: destroy the correct 196 packet. 197 1982019-11-04 199 - 2.5.1 200 - [BUGFIX] Fix double-free when emptying a packet number space. 201 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 202 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 203 verneg packets (regression introduced in 2.5.0). 204 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 205 - [OPTIMIZATION] http_server: compile regexes only once. 206 2072019-10-31 208 - 2.5.0 209 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 210 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 211 - [BUGFIX] Don't evict streams from priority iterator if there is 212 only one queue. 213 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 214 - Use ls-qpack v0.10.7. 215 2162019-10-24 217 - 2.4.10 218 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 219 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 220 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 221 values are not unique). 222 - [BUGFIX] Always set the idle alarm in IETF connection so that it 223 can time out. 224 - Use ls-qpack v0.10.6, as it silences some warnings. 225 2262019-10-21 227 - 2.4.8 228 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 229 2302019-10-15 231 - 2.4.7 232 - Add echo client and server to the distibution. 233 - Add MD5 client and server to the distibution. 234 - Fix http_client: check command-line arguments better, prevent crash. 235 - Fix IETF conn: can_write_ack() should only care about APP PNS. 236 - Client: delay stream creation until handshake succeds. 237 - Reset HTTP stream whose write end is closed prematurely. 238 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 239 - Log reason why engine is tickable. 240 2412019-10-11 242 - 2.4.6 243 - Minor code cleanup and logging improvements. 244 - Server and client programs: include library version (e.g. 2.4.6) 245 into `server' and `user-agent' headers. 246 2472019-10-08 248 - 2.4.5 249 - [OPTIMIZATION]: flush encoder stream only when necessary. 250 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 251 - [BUGFIX] Typo in IETF conn SETTINGS writer. 252 - Use latest BoringSSL. 253 2542019-10-08 255 - 2.4.4 256 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 257 - [BUGFIX] NULL dereference when H3 frame header would be split. 258 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 259 - [BUGFIX] Allow PING frames in IETF mini conn. 260 - [BUGFIX] Mini conns: don't send any packets after receiving 261 CONNECTION_CLOSE. 262 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 263 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 264 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 265 valid stream number). 266 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 267 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 268 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 269 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 270 - Update ls-qpack to v0.10.1. 271 2722019-09-30 273 - 2.4.3 274 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 275 For example, h3-Q043. Chrome will switch to using this format at 276 some point in the future. 277 - [BUGFIX] Send correct value in max_streams_uni transport param 278 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 279 to 0xFFFFFFFF 280 2812019-09-23 282 - 2.4.2 283 - [BUGFIX] H3 framing: fix zero-byte write when space is available 284 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 285 is closed 286 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 287 - [BUGFIX] Fix use-after-free in IETF full conn 288 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 289 SSL object and crypto streams. 290 2912019-09-18 292 - 2.4.0 293 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 294 2952019-09-13 296 - 2.3.1 297 - [BUGFIX] Fix memory leaks 298 - [BUGFIX] Fix unit tests 299 3002019-09-12 301 - 2.3.0 302 - [FEATURE] BBR congestion control is on by default 303 - [BUGFIX] BBR app-limited logic 304 - [BUGFIX] Fix uninitialized warnings in IETF 305 - [BUGFIX] Update ls-qpack to v0.9.14 306 - [CLEANUP] Code cleanup 307 3082019-09-11 309 - 2.2.0 310 - [FEATURE] Server code is included in the library 311 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 312 3132019-05-13 314 - 1.21.2 315 - [OPTIMIZATION] HPACK: use history to improve compression performance 316 3172019-05-06 318 - 1.21.1 319 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 320 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 321 search static and dynamic tables. 322 3232019-04-12 324 - 1.21.0 325 - [FEATURE] Add qlog log module. 326 3272019-04-01 328 - 1.20.0 329 - [FEATURE] Add support for Q046. 330 3312019-03-19 332 - 1.19.6 333 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 334 send. ACK frames placed in packets in buffered queues (optimization 335 introduced in 1.17.15) can be preceded by an ACK frame generated later. 336 In this case, the older ACK frame should not be sent out, as Chromium- 337 based servers flags decrease in the ACK frame's Largest Observed value 338 as an error. 339 3402019-03-05 341 - 1.19.5 342 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 343 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 344 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 345 3462019-02-25 347 - 1.19.4 348 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 349 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 350 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 351 3522019-02-18 353 - 1.19.3 354 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 355 packet number encoding does not exist in Q044. This fixes a 356 regression introduced in '[BUGFIX] Buffered packets can contain 357 ACK frames' -- we need to keep QUIC version in mind when selecting 358 the longest possible packet number encoding used for the buffered 359 packet that carries the ACK. 360 - [BUGFIX] Do not increase CWND when timeout occurs. 361 - http_client: support setting handshake timeout on command line. 362 Use -o handshake_to=timeout. 363 - http_client: use -k to connect UDP socket to pick up ICMP errors. 364 - http_client: allow pathless mode, when only handshake is performed 365 without issuing any requests. This can be done by simply not 366 specifying a -p flag on the command line. 367 3682019-02-11 369 - 1.19.2 370 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 371 - [BUGFIX] Version checking in zero_rtt deserialize function. 372 3732019-02-04 374 - 1.19.1 375 - [BUGFIX] Fix Windows build. 376 3772019-02-04 378 - 1.19.0 379 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 380 information; it can be supplied to a subsequent connect() call. 381 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 382 - [BUGFIX] Resuscitate the Windows build. 383 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 384 - [BUGFIX] Buffered packets can contain ACK frames. 385 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 386 - [BUGFIX] Fix potential null dereference when realloc fails. 387 - cmake: simplify build configuration. 388 3892019-01-28 390 - 1.18.0 391 - [API Change] Can specify clock granularity in engine settings. 392 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 393 2018-04-09, it is not necessary to try to approximate the next tick 394 time in the pacer: it can use fix clock granularity specified by 395 the user. 396 - [BUGFIX] Do not tick constantly before handshake is done. 397 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 398 if we cannot allocate *more* packets, we could still be able to write 399 to one already allocated. 400 - [BUGFIX] Do not schedule pacer if there are no lost packets. 401 4022019-01-17 403 - 1.17.15 404 - [BUGFIX] http_client: make sure only one read per on_read() callback 405 is performed in the header conversion bypass (-B) mode. 406 - http_client: with -E, assign random priority when stream is created. 407 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 408 buffered packet if an ACK is queued. This reduces the number of 409 standalone ACK packets. 410 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 411 stream into an outgoing packet. This change minimizes the number of 412 buffered packets required to store several small HTTP messages by 413 virtue of allowing more than one STREAM frame from HEADERS stream in 414 the same packet. 415 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 416 causes the headers to be written to the same buffered packet queue, 417 thereby improving packet utilization, especially for small HTTP 418 messages. 419 4202019-01-16 421 - 1.17.14 422 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 423 time to download, requests per seconds, and bandwidth. See -t flag. 424 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 425 - [BUGFIX] http_client: do not display cert chain before each request. 426 Now this is only done once per connection, if the handshake is 427 successful and -a option is given. 428 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 429 stream is scheduled to be closed after on_read() callback returns, 430 close it immediately instead of waiting until the end of the tick. 431 If client creates new request from on_close() event, they will be 432 processed in the same tick instead of waiting for the next one. 433 - [BUGFIX] HEADERS stream is critical: always treat it with highest 434 priority. 435 4362019-01-10 437 - 1.17.12 438 - [FEATURE] http_client can now issue parallel requests in the context 439 of a single connection. See -w option. 440 4412019-01-03 442 - 1.17.11 443 - Fix strict aliasing warning in optimized compilation. 444 4452018-12-27 446 - 1.17.10 447 - Fix the example program to be able to use parallel connections 448 again. (See the -n argument.) 449 4502018-12-18 451 - 1.17.9 452 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 453 4542018-12-10 455 - 1.17.8 456 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 457 4582018-12-03 459 - 1.17.7 460 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 461 This prevented PING from ever being sent. 462 4632018-11-29 464 - 1.17.6 465 - Add failsafe: resume sending packets after some time 466 467 The change puts a 1-second limit on the amount of time the engine 468 will not send packets after some packets are delayed. This makes 469 the library robust in case the user does not unblock the engine 470 explicitly using lsquic_engine_send_unsent_packets() call. 471 472 - [BUGFIX] Handle corner cases in send controller when packets are 473 a) delayed or b) dropped during repackaging. 474 - [BUGFIX] Memory leak: destroy buffered packets during controller 475 cleanup. 476 4772018-11-16 478 - 1.17.3 479 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 480 4812018-10-19 482 - 1.17.2 483 - [BUGFIX] Memory leak in test_frame_rw unit test. 484 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 485 flags. (Only a problem in unit tests -- benign otherwise.) 486 4872018-10-16 488 - 1.17.0 489 - [API Change] Packet out Memory Interface (PMI) update: 490 - Split PMI pool return into pmi_release and pmi_return 491 - PMI callbacks take peer_ctx and is_ipv6 arguments 492 - [BUGFIX] Fix use-after-free when certificate is updated 493 - Silence gcc warning in optimized mode by performing useless 494 initialization 495 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 496 DEVEL_MODE 497 4982018-10-03 499 - 1.16.0 500 - [API Change] Add lsquic_conn_n_avail_streams() 501 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 502 5032018-09-27 504 - 1.15.0 505 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 506 - [BUGFIX] free uncompressed headers correctly when error occurs 507 5082018-09-12 509 - 1.14.3 510 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 511 - [BUGFIX] Drop packets that would become empty due to repackaging. 512 Packets on the scheduled queue may be marked for repackaging. 513 Frames such as ACK frame that are never resent are removed from 514 repackaged packets. We must check that the newly repackaged packet 515 would not be empty. If it would be, it is destroyed instead and 516 the next packet on the scheduled queue is used. Note that this 517 change only affects the logic to return the next packet to be sent. 518 Lost packets that are being rescheduled are already processed in 519 this fashion. 520 - Byteswap CID before logging it - this makes it match Chrome CIDs. 521 (Except Q035, which is the last little-endian GQUIC version we 522 support.) 523 5242018-09-06 525 - 1.14.0 526 - [API Change] Disable packet sending if full batch cannot be sent 527 If lsquic_packets_out_f() cannot send the whole batch, disable 528 packet sending until lsquic_engine_send_unsent_packets() is called. 529 - [BUGFIX] Handle case when STREAM frame does not fit. 530 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 531 may send overlapping STREAM frames even if using versions older 532 than Q043. 533 - Custom header set fixes: 534 - set "FIN reached" flag when custom header with FIN flag is 535 claimed; 536 - do not return custom header set for a reset stream. 537 5382018-08-27 539 540 - 1.13.0 541 - [FEATURE, API Change] Add ability to create custom header set 542 objects via callbacks. This avoids reading and re-parsing 543 headers from the stream. 544 5452018-08-27 546 547 - 1.12.4 548 - Fix memory leak when engine is destroyed 549 - Fix memory leak in http_client 550 - Fix gcc warning in unit tests 551 5522018-08-22 553 554 - 1.12.3 555 - [BUGFIX] Fix duplicate STREAM frame detection 556 5572018-08-20 558 559 - 1.12.2 560 - [BUGFIX] Update count of scheduled bytes when adjusting size of 561 an already-scheduled packet. 562 - Emit info instead of warning messages when stream is used in 563 unexpected ways. 564 5652018-08-17 566 567 - 1.12.0 568 - [FEATURE, API Change] Add support for certificate verification 569 5702018-08-16 571 572 - 1.11.1 573 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 574 5752018-08-15 576 577 - 1.11.0 578 - [FEATURE] Add support for Q044. 579 5802018-08-09 581 582 - 1.10.2 583 - [BUGFIX] Don't go over limit when creating delayed streams 584 5852018-07-10 586 587 - 1.10.1 588 - [BUGFIX] process connections after each batch of packets is read 589 This avoids a problem of accumulating a very large list of packets 590 (possible when speeds are high and socket's receive buffer is large) 591 and processing it all at once. 592 - If glibc is older than 2.17, link with rt. This is necessary for 593 clock_getres(2). 594 - Add version macros to lsquic.h; remove unnecessary includes. 595 5962018-06-13 597 598 - [BUGFIX] allow multiple parallel connections by default 599 600 Use the original method of tracking connections by CIDs by default. 601 If zero-sized CID support is turned on, connections are tracked by 602 the address. A new connection is not created if another connection 603 is using the same network address 604 6052018-05-30 606 607 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 608 6092018-05-24 610 611 - Close connection properly when packet encryption fails 612 6132018-05-23 614 615 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 616 6172018-05-21 618 619 - [API Change] Add optional callback to call when handshake is done 620 - [API Change, BUGFIX] After send failure, wait until transport available 621 6222018-05-18 623 624 - [API] Expose useful lsquic_ver2str[] in lsquic.h 625 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 626 - Improve checks of number of incoming streams limit and associated 627 error reporting. 628 - [BUGFIX] Command-line option `-6` now works correctly. 629 6302018-05-16 631 632 - [FEATURE] DNS resolution 633 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 634 - http_client: fix priority range generated by -E flag 635 6362018-05-09 637 638 - [FEATURE] Add support for Q043. 639 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 640 - Fix typo in debug message. 641 - Fix code indentation. 642 - Add /* fallthru */ comment to stop newer gcc from complaining. 643 - Logger: fix compilation of optimized Windows build. 644 6452018-05-04 646 647 - [FEATURE] Add support for Q042. 648 - Remove comment: MSPC is obsolete (no code changes) 649 - Prog: use lsquic_str2ver() when processing -o version flag 650 - Remove unused CTIM and SRBF transport parameters 651 - Disable QUIC versions Q037 and Q038 by default 652 - Fix Windows compilation by including compat header file in 653 lshpack.c 654 - Address warnings produced by newer versions of gcc 655 - Future-proof: turn off -Werror 656 6572018-05-02 658 659 - [BUGFIX] Make lsquic_conn_quic_version() available 660 - Switch to using ls-hpack 1.1 661 - [BUGFIX] Do not ignore stream resets after receiving FIN 662 6632018-04-27 664 665 - HPACK: do not allow header block to end with table size update. 666 6672018-04-25 668 669 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 670 packets. 671 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 672 - [BUGFIX] connections with blocked scheduled packets are not tickable 673 for sending. 674 - [BUGFIX] Conn is tickable if it wants to send a connection-level 675 frame. 676 6772018-04-23 678 679 - Fix busy loop: tickable must make progress. When connection is 680 self-reporting as tickable, it must make progress when ticked. There 681 are two issues: 682 1. If there are buffered packets, the connection is only tickable if 683 they can be sent out. 684 2. A connection is tickable if there are streams on the servicing 685 queue. When the tick occurs, we must service the stream 686 independent of whether any packets are sent. 687 - Fix assertion in pacer which can be incorrect under some 688 conditions. 689 - cmake: do not turn on address sanitizer if in Travis. 690 6912018-04-20 692 693 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 694 changes. 695 6962018-04-19 697 698 - [BUGFIX] Add connection to Tickable Queue on stream write 699 - cmake: use MSVC variable instead of trying to detect 700 - engine: improve connection incref/decref logging 701 - stream: don't ignore errors that may occur on triggered flush 702 - connection: remove obsolete method 703 - engine: indicate connection as tickable if previous call went 704 over threshold 705 7062018-04-09 707 708 [API Change, OPTIMIZATION] Only process conns that need to be processed 709 710 The API is simplified: do not expose the user code to several 711 queues. A "connection queue" is now an internal concept. 712 The user processes connections using the single function 713 lsquic_engine_process_conns(). When this function is called, 714 only those connections are processed that need to be processed. 715 A connection needs to be processed when: 716 717 1. New incoming packets have been fed to the connection. 718 2. User wants to read from a stream that is readable. 719 3. User wants to write to a stream that is writeable. 720 4. There are buffered packets that can be sent out. (This 721 means that the user wrote to a stream outside of the 722 lsquic library callback.) 723 5. A control frame (such as BLOCKED) needs to be sent out. 724 6. A stream needs to be serviced or delayed stream needs to 725 be created. 726 7. An alarm rings. 727 8. Pacer timer expires. 728 729 To achieve this, the library places the connections into two 730 priority queues (min heaps): 731 732 1. Tickable Queue; and 733 2. Advisory Tick Time queue (ATTQ). 734 735 Each time lsquic_engine_process_conns() is called, the Tickable 736 Queue is emptied. After the connections have been ticked, they are 737 queried again: if a connection is not being closed, it is placed 738 either in the Tickable Queue if it is ready to be ticked again or 739 it is placed in the Advisory Tick Time Queue. It is assumed that 740 a connection always has at least one timer set (the idle alarm). 741 742 The connections in the Tickable Queue are arranged in the least 743 recently ticked order. This lets connections that have been quiet 744 longer to get their packets scheduled first. 745 746 This change means that the library no longer needs to be ticked 747 periodically. The user code can query the library when is the 748 next tick event and schedule it exactly. When connections are 749 processed, only the tickable connections are processed, not *all* 750 the connections. When there are no tick events, it means that no 751 timer event is necessary -- only the file descriptor READ event 752 is active. 753 754 The following are improvements and simplifications that have 755 been triggered: 756 757 - Queue of connections with incoming packets is gone. 758 - "Pending Read/Write Events" Queue is gone (along with its 759 history and progress checks). This queue has become the 760 Tickable Queue. 761 - The connection hash no longer needs to track the connection 762 insertion order. 763 7642018-04-02 765 766 - [FEATURE] Windows support 767 768 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 769 7702018-03-09 771 772 - [OPTIMIZATION] Merge series of ACKs if possible 773 774 Parsed single-range ACK frames (that is the majority of frames) are 775 saved in the connection and their processing is deferred until the 776 connection is ticked. If several ACKs come in a series between 777 adjacent ticks, we check whether the latest ACK is a strict superset 778 of the saved ACK. If it is, the older ACK is not processed. 779 780 If ACK frames can be merged, they are merged and only one of them is 781 either processed or saved. 782 783 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 784 785 Never generate a gap in the sent packet number sequence. This reduces 786 the send history to a single number instead of potentially a series of 787 packet ranges and thereby speeds up ACK verification. 788 789 By default, detecting a gap in the send history is not fatal: only a 790 single warning is generated per connection. The connection can continue 791 to operate even if the ACK verification code is not able to detect some 792 inconsistencies. 793 794 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 795 796 The first part of struct lsquic_send_ctl now consists of members that 797 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 798 which is the normal case). To speed up reads and writes, we no longer 799 try to save space by using 8- and 16-bit integers. Use regular integer 800 width for everything. 801 802 - [OPTIMIZATION] Cache size of sent packet. 803 804 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 805 806 Instead of parsing our own ACK frames when packet has been acked, 807 use the value saved in the packet_out structure when the ACK frame 808 was generated. 809 810 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 811 812 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 813 814 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 815 816 - Fix: http_client: fix -I flag; switch assert() to abort() 817 8182018-02-26 819 - [API Change] lsquic_engine_connect() returns pointer to the connection 820 object. 821 - [API Change] Add lsquic_conn_get_engine() to get engine object from 822 connection object. 823 - [API Change] Add lsquic_conn_status() to query connection status. 824 - [API Change] Add add lsquic_conn_set_ctx(). 825 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 826 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 827 arrives. 828 - [OPTIMIZATION] Do not compile expensive send controller sanity check 829 by default. 830 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 831 - [OPTIMIZATION] Only make squeeze function call if necessary. 832 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 833 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 834 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 835 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 836 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 837 ordered. 838 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 839 - Fix: reset incoming streams that arrive after we send GOAWAY. 840 - Fix: delay client on_new_conn() call until connection is fully set up. 841 - Fixes to buffered packets logic: splitting, STREAM frame elision. 842 - Fix: do not dispatch on_write callback if no packets are available. 843 - Fix WINDOW_UPDATE send and resend logic. 844 - Fix STREAM frame extension code. 845 - Fix: Drop unflushed data when stream is reset. 846 - Switch to tracking CWND using bytes rather than packets. 847 - Fix TCP friendly adjustment in cubic. 848 - Fix: do not generate invalid STOP_WAITING frames during high packet 849 loss. 850 - Pacer fixes. 851 8522017-12-18 853 854 - Fix: better follow cubic curve after idle period 855 - Fix: add missing parts to outgoing packet splitting code 856 - Fix: compilation using gcc 4.8.4 857 8582017-10-31 859 860 - Add APIs.txt -- describes LSQUIC APIs 861 8622017-10-31 863 864 - [API Change] Sendfile-like functionality is gone. The stream no 865 longer opens files and deals with file descriptors. (Among other 866 things, this makes the code more portable.) Three writing functions 867 are provided: 868 869 lsquic_stream_write 870 lsquic_stream_writev 871 lsquic_stream_writef (NEW) 872 873 lsquic_stream_writef() is given an abstract reader that has function 874 pointers for size() and read() functions which the user can implement. 875 This is the most flexible way. lsquic_stream_write() and 876 lsquic_stream_writev() are now both implemented as wrappers around 877 lsquic_stream_writef(). 878 879 - [OPTIMIZATION] When writing to stream, be it within or without the 880 on_write() callback, place data directly into packet buffer, 881 bypassing auxiliary data structures. This reduces amount of memory 882 required, for the amount of data that can be written is limited 883 by the congestion window. 884 885 To support writes outside the on_write() callback, we keep N 886 outgoing packet buffers per connection which can be written to 887 by any stream. One half of these are reserved for the highest 888 priority stream(s), the other half for all other streams. This way, 889 low-priority streams cannot write instead of high-priority streams 890 and, on the other hand, low-priority streams get a chance to send 891 their packets out. 892 893 The algorithm is as follows: 894 895 - When user writes to stream outside of the callback: 896 - If this is the highest priority stream, place it onto the 897 reserved N/2 queue or fail. 898 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 899 rather than N/2, allowing high-priority streams to write as 900 much as can be sent.) 901 - If the stream is not the highest priority, try to place the 902 data onto the reserved N/2 queue or fail. 903 - When tick occurs *and* more packets can be scheduled: 904 - Transfer packets from the high N/2 queue to the scheduled 905 queue. 906 - If more scheduling is allowed: 907 - Call on_write callbacks for highest-priority streams, 908 placing resulting packets directly onto the scheduled queue. 909 - If more scheduling is allowed: 910 - Transfer packets from the low N/2 queue to the scheduled 911 queue. 912 - If more scheduling is allowed: 913 - Call on_write callbacks for non-highest-priority streams, 914 placing resulting packets directly onto the scheduled queue 915 916 The number N is currently 20, but it could be varied based on 917 resource usage. 918 919 - If stream is created due to incoming headers, make headers readable 920 from on_new. 921 922 - Outgoing packets are no longer marked non-writeable to prevent placing 923 more than one STREAM frame from the same stream into a single packet. 924 This property is maintained via code flow and an explicit check. 925 Packets for stream data are allocated using a special function. 926 927 - STREAM frame elision is cheaper, as we only perform it if a reset 928 stream has outgoing packets referencing it. 929 930 - lsquic_packet_out_t is smaller, as stream_rec elements are now 931 inside a union. 932 9332017-10-12 934 935 - Do not send RST_STREAM when stream is closed for reading 936 - Raise maximum header size from 4K to 64K 937 - Check header name and value lengths against maximum imposed by HPACK 938 - Fix NULL dereference in stream flow controller 939 9402017-10-09 941 942 - Hide handshake implementation behind a set of function pointers 943 - Use monotonically increasing clock 944 - Make sure that retx delay is not larger than the max of 60 seconds 945 9462017-09-29 947 948 - A few fixes to code and README 949 9502017-09-28 951 952 - Add support for Q041; drop support for Q040 953 9542017-09-27 955 956 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 957 9582017-09-26 959 960 - Add support for Mac OS 961 - Add support for Raspberry Pi 962 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 963 9642017-09-22 965 966 - Initial release 967