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