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