CHANGELOG revision 1c9cee3e
12019-11-04 2 - 2.5.1 3 - [BUGFIX] Fix double-free when emptying a packet number space. 4 - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly. 5 - [BUGFIX] Use random values in bits 4 and 5 of the first byte of 6 verneg packets (regression introduced in 2.5.0). 7 - [OPTIMIZATION] Don't compile in expensive attq checks by default. 8 - [OPTIMIZATION] http_server: compile regexes only once. 9 102019-10-31 11 - 2.5.0 12 - [API] lsquic_engine_connect() can now be passed QUIC version to use. 13 - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent. 14 - [BUGFIX] Don't evict streams from priority iterator if there is 15 only one queue. 16 - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes. 17 - Use ls-qpack v0.10.7. 18 192019-10-24 20 - 2.4.10 21 - [BUGFIX] IETF QUIC server: fix uninitialized variable use. 22 - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object. 23 - [BUGFIX] Use issuer name and serial number to cache certs (SKID 24 values are not unique). 25 - [BUGFIX] Always set the idle alarm in IETF connection so that it 26 can time out. 27 - Use ls-qpack v0.10.6, as it silences some warnings. 28 292019-10-21 30 - 2.4.8 31 - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5. 32 332019-10-15 34 - 2.4.7 35 - Add echo client and server to the distibution. 36 - Add MD5 client and server to the distibution. 37 - Fix http_client: check command-line arguments better, prevent crash. 38 - Fix IETF conn: can_write_ack() should only care about APP PNS. 39 - Client: delay stream creation until handshake succeds. 40 - Reset HTTP stream whose write end is closed prematurely. 41 - Fix tickable(): mirror behavior of tick() wrt buffered packets. 42 - Log reason why engine is tickable. 43 442019-10-11 45 - 2.4.6 46 - Minor code cleanup and logging improvements. 47 - Server and client programs: include library version (e.g. 2.4.6) 48 into `server' and `user-agent' headers. 49 502019-10-08 51 - 2.4.5 52 - [OPTIMIZATION]: flush encoder stream only when necessary. 53 - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix. 54 - [BUGFIX] Typo in IETF conn SETTINGS writer. 55 - Use latest BoringSSL. 56 572019-10-08 58 - 2.4.4 59 - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header. 60 - [BUGFIX] NULL dereference when H3 frame header would be split. 61 - [BUGFIX] Do not close fixed-size H3 frame prematurely. 62 - [BUGFIX] Allow PING frames in IETF mini conn. 63 - [BUGFIX] Mini conns: don't send any packets after receiving 64 CONNECTION_CLOSE. 65 - [BUGFIX] Client migration: reserve slot for DCID from transport params. 66 - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there. 67 - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a 68 valid stream number). 69 - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected. 70 - [OPTIMIZATION] Closed connection only gets one chance to send packets. 71 - [OPTIMIZATION] Flush headers stream before packetizing stream data. 72 - [OPTIMIZATION] process QPACK encoder STREAM frames immediately. 73 - Update ls-qpack to v0.10.1. 74 752019-09-30 76 - 2.4.3 77 - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header. 78 For example, h3-Q043. Chrome will switch to using this format at 79 some point in the future. 80 - [BUGFIX] Send correct value in max_streams_uni transport param 81 - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set 82 to 0xFFFFFFFF 83 842019-09-23 85 - 2.4.2 86 - [BUGFIX] H3 framing: fix zero-byte write when space is available 87 - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream 88 is closed 89 - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY 90 - [BUGFIX] Fix use-after-free in IETF full conn 91 - [OPTIMIZATION] Wait for session tickets for two seconds and then drop 92 SSL object and crypto streams. 93 942019-09-18 95 - 2.4.0 96 - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support 97 982019-09-13 99 - 2.3.1 100 - [BUGFIX] Fix memory leaks 101 - [BUGFIX] Fix unit tests 102 1032019-09-12 104 - 2.3.0 105 - [FEATURE] BBR congestion control is on by default 106 - [BUGFIX] BBR app-limited logic 107 - [BUGFIX] Fix uninitialized warnings in IETF 108 - [BUGFIX] Update ls-qpack to v0.9.14 109 - [CLEANUP] Code cleanup 110 1112019-09-11 112 - 2.2.0 113 - [FEATURE] Server code is included in the library 114 - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22) 115 1162019-05-13 117 - 1.21.2 118 - [OPTIMIZATION] HPACK: use history to improve compression performance 119 1202019-05-06 121 - 1.21.1 122 - [BUGFIX] If FIN or RST not received, don't delay stream destruction. 123 - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to 124 search static and dynamic tables. 125 1262019-04-12 127 - 1.21.0 128 - [FEATURE] Add qlog log module. 129 1302019-04-01 131 - 1.20.0 132 - [FEATURE] Add support for Q046. 133 1342019-03-19 135 - 1.19.6 136 - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we 137 send. ACK frames placed in packets in buffered queues (optimization 138 introduced in 1.17.15) can be preceded by an ACK frame generated later. 139 In this case, the older ACK frame should not be sent out, as Chromium- 140 based servers flags decrease in the ACK frame's Largest Observed value 141 as an error. 142 1432019-03-05 144 - 1.19.5 145 - [BUGFIX] Use correct public key from PUBS based on KEXS index. 146 - [BUGFIX] Check flags before dispatching writes, avoiding assert. 147 - [BUGFIX] Set :scheme to "https" (instead of "HTTP"). 148 1492019-02-25 150 - 1.19.4 151 - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob. 152 - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed. 153 - Log number of pacer calls at DEBUG, rather than NOTICE, level. 154 1552019-02-18 156 - 1.19.3 157 - [BUGFIX] Q044: don't encode packet number in 6 bytes. Six-byte 158 packet number encoding does not exist in Q044. This fixes a 159 regression introduced in '[BUGFIX] Buffered packets can contain 160 ACK frames' -- we need to keep QUIC version in mind when selecting 161 the longest possible packet number encoding used for the buffered 162 packet that carries the ACK. 163 - [BUGFIX] Do not increase CWND when timeout occurs. 164 - http_client: support setting handshake timeout on command line. 165 Use -o handshake_to=timeout. 166 - http_client: use -k to connect UDP socket to pick up ICMP errors. 167 - http_client: allow pathless mode, when only handshake is performed 168 without issuing any requests. This can be done by simply not 169 specifying a -p flag on the command line. 170 1712019-02-11 172 - 1.19.2 173 - [BUGFIX] Begin negotiation with version provided in 0-RTT info. 174 - [BUGFIX] Version checking in zero_rtt deserialize function. 175 1762019-02-04 177 - 1.19.1 178 - [BUGFIX] Fix Windows build. 179 1802019-02-04 181 - 1.19.0 182 - [FEATURE, API Change] 0-RTT support. Add function to export 0-RTT 183 information; it can be supplied to a subsequent connect() call. 184 - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support. 185 - [BUGFIX] Resuscitate the Windows build. 186 - [BUGFIX] Send HTTP settings (max header list size) if necessary. 187 - [BUGFIX] Buffered packets can contain ACK frames. 188 - [BUGFIX] Make packet writeable once all STREAM frames are elided. 189 - [BUGFIX] Fix potential null dereference when realloc fails. 190 - cmake: simplify build configuration. 191 1922019-01-28 193 - 1.18.0 194 - [API Change] Can specify clock granularity in engine settings. 195 - [BUGFIX] Pacer uses fixed clock granularity. Since the change on 196 2018-04-09, it is not necessary to try to approximate the next tick 197 time in the pacer: it can use fix clock granularity specified by 198 the user. 199 - [BUGFIX] Do not tick constantly before handshake is done. 200 - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK. Even 201 if we cannot allocate *more* packets, we could still be able to write 202 to one already allocated. 203 - [BUGFIX] Do not schedule pacer if there are no lost packets. 204 2052019-01-17 206 - 1.17.15 207 - [BUGFIX] http_client: make sure only one read per on_read() callback 208 is performed in the header conversion bypass (-B) mode. 209 - http_client: with -E, assign random priority when stream is created. 210 - [OPTIMIZATION] On immediate write, place an ACK frame into the first 211 buffered packet if an ACK is queued. This reduces the number of 212 standalone ACK packets. 213 - [OPTIMIZATION] Allow placing more than one STREAM frame from the same 214 stream into an outgoing packet. This change minimizes the number of 215 buffered packets required to store several small HTTP messages by 216 virtue of allowing more than one STREAM frame from HEADERS stream in 217 the same packet. 218 - [OPTIMIZATION] Flush headers when writing to buffered packets. This 219 causes the headers to be written to the same buffered packet queue, 220 thereby improving packet utilization, especially for small HTTP 221 messages. 222 2232019-01-16 224 - 1.17.14 225 - [FEATURE] http_client can now collect stats: time to connect, TTFB, 226 time to download, requests per seconds, and bandwidth. See -t flag. 227 - [BUGFIX] http_client: -B, -K, and -r can be used at the same time. 228 - [BUGFIX] http_client: do not display cert chain before each request. 229 Now this is only done once per connection, if the handshake is 230 successful and -a option is given. 231 - [BUGFIX] Do not wait to dispatch on_close() after reading. If a 232 stream is scheduled to be closed after on_read() callback returns, 233 close it immediately instead of waiting until the end of the tick. 234 If client creates new request from on_close() event, they will be 235 processed in the same tick instead of waiting for the next one. 236 - [BUGFIX] HEADERS stream is critical: always treat it with highest 237 priority. 238 2392019-01-10 240 - 1.17.12 241 - [FEATURE] http_client can now issue parallel requests in the context 242 of a single connection. See -w option. 243 2442019-01-03 245 - 1.17.11 246 - Fix strict aliasing warning in optimized compilation. 247 2482018-12-27 249 - 1.17.10 250 - Fix the example program to be able to use parallel connections 251 again. (See the -n argument.) 252 2532018-12-18 254 - 1.17.9 255 - [BUGFIX] Engine: reduce minimum batch size from 256 to 4 256 2572018-12-10 258 - 1.17.8 259 - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux 260 2612018-12-03 262 - 1.17.7 263 - [BUGFIX] Do not unset PING alarm before ringing expired alarms. 264 This prevented PING from ever being sent. 265 2662018-11-29 267 - 1.17.6 268 - Add failsafe: resume sending packets after some time 269 270 The change puts a 1-second limit on the amount of time the engine 271 will not send packets after some packets are delayed. This makes 272 the library robust in case the user does not unblock the engine 273 explicitly using lsquic_engine_send_unsent_packets() call. 274 275 - [BUGFIX] Handle corner cases in send controller when packets are 276 a) delayed or b) dropped during repackaging. 277 - [BUGFIX] Memory leak: destroy buffered packets during controller 278 cleanup. 279 2802018-11-16 281 - 1.17.3 282 - [BUGFIX] Do not send STOP_WAITING frames when using Q044 283 2842018-10-19 285 - 1.17.2 286 - [BUGFIX] Memory leak in test_frame_rw unit test. 287 - [BUGFIX] Parsing packets with short IETF header: do not overwrite 288 flags. (Only a problem in unit tests -- benign otherwise.) 289 2902018-10-16 291 - 1.17.0 292 - [API Change] Packet out Memory Interface (PMI) update: 293 - Split PMI pool return into pmi_release and pmi_return 294 - PMI callbacks take peer_ctx and is_ipv6 arguments 295 - [BUGFIX] Fix use-after-free when certificate is updated 296 - Silence gcc warning in optimized mode by performing useless 297 initialization 298 - cmake: use the standard variable CMAKE_BUILD_TYPE instead of 299 DEVEL_MODE 300 3012018-10-03 302 - 1.16.0 303 - [API Change] Add lsquic_conn_n_avail_streams() 304 - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on 305 3062018-09-27 307 - 1.15.0 308 - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses 309 - [BUGFIX] free uncompressed headers correctly when error occurs 310 3112018-09-12 312 - 1.14.3 313 - [BUGFIX] Do not abort conn on STREAM frame for a reset stream 314 - [BUGFIX] Drop packets that would become empty due to repackaging. 315 Packets on the scheduled queue may be marked for repackaging. 316 Frames such as ACK frame that are never resent are removed from 317 repackaged packets. We must check that the newly repackaged packet 318 would not be empty. If it would be, it is destroyed instead and 319 the next packet on the scheduled queue is used. Note that this 320 change only affects the logic to return the next packet to be sent. 321 Lost packets that are being rescheduled are already processed in 322 this fashion. 323 - Byteswap CID before logging it - this makes it match Chrome CIDs. 324 (Except Q035, which is the last little-endian GQUIC version we 325 support.) 326 3272018-09-06 328 - 1.14.0 329 - [API Change] Disable packet sending if full batch cannot be sent 330 If lsquic_packets_out_f() cannot send the whole batch, disable 331 packet sending until lsquic_engine_send_unsent_packets() is called. 332 - [BUGFIX] Handle case when STREAM frame does not fit. 333 - [BUGFIX] Always allow incoming STREAM frames to overlap. Peers 334 may send overlapping STREAM frames even if using versions older 335 than Q043. 336 - Custom header set fixes: 337 - set "FIN reached" flag when custom header with FIN flag is 338 claimed; 339 - do not return custom header set for a reset stream. 340 3412018-08-27 342 343 - 1.13.0 344 - [FEATURE, API Change] Add ability to create custom header set 345 objects via callbacks. This avoids reading and re-parsing 346 headers from the stream. 347 3482018-08-27 349 350 - 1.12.4 351 - Fix memory leak when engine is destroyed 352 - Fix memory leak in http_client 353 - Fix gcc warning in unit tests 354 3552018-08-22 356 357 - 1.12.3 358 - [BUGFIX] Fix duplicate STREAM frame detection 359 3602018-08-20 361 362 - 1.12.2 363 - [BUGFIX] Update count of scheduled bytes when adjusting size of 364 an already-scheduled packet. 365 - Emit info instead of warning messages when stream is used in 366 unexpected ways. 367 3682018-08-17 369 370 - 1.12.0 371 - [FEATURE, API Change] Add support for certificate verification 372 3732018-08-16 374 375 - 1.11.1 376 - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code 377 3782018-08-15 379 380 - 1.11.0 381 - [FEATURE] Add support for Q044. 382 3832018-08-09 384 385 - 1.10.2 386 - [BUGFIX] Don't go over limit when creating delayed streams 387 3882018-07-10 389 390 - 1.10.1 391 - [BUGFIX] process connections after each batch of packets is read 392 This avoids a problem of accumulating a very large list of packets 393 (possible when speeds are high and socket's receive buffer is large) 394 and processing it all at once. 395 - If glibc is older than 2.17, link with rt. This is necessary for 396 clock_getres(2). 397 - Add version macros to lsquic.h; remove unnecessary includes. 398 3992018-06-13 400 401 - [BUGFIX] allow multiple parallel connections by default 402 403 Use the original method of tracking connections by CIDs by default. 404 If zero-sized CID support is turned on, connections are tracked by 405 the address. A new connection is not created if another connection 406 is using the same network address 407 4082018-05-30 409 410 - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets 411 4122018-05-24 413 414 - Close connection properly when packet encryption fails 415 4162018-05-23 417 418 - [BUGFIX] Do not produce packet sequence gaps due to delayed packets 419 4202018-05-21 421 422 - [API Change] Add optional callback to call when handshake is done 423 - [API Change, BUGFIX] After send failure, wait until transport available 424 4252018-05-18 426 427 - [API] Expose useful lsquic_ver2str[] in lsquic.h 428 - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision 429 - Improve checks of number of incoming streams limit and associated 430 error reporting. 431 - [BUGFIX] Command-line option `-6` now works correctly. 432 4332018-05-16 434 435 - [FEATURE] DNS resolution 436 - [BUGFIX] Frame insertion mis-ID as overlap instead of dup 437 - http_client: fix priority range generated by -E flag 438 4392018-05-09 440 441 - [FEATURE] Add support for Q043. 442 - Support for versions Q037, Q038, Q041, and Q042 has been removed. 443 - Fix typo in debug message. 444 - Fix code indentation. 445 - Add /* fallthru */ comment to stop newer gcc from complaining. 446 - Logger: fix compilation of optimized Windows build. 447 4482018-05-04 449 450 - [FEATURE] Add support for Q042. 451 - Remove comment: MSPC is obsolete (no code changes) 452 - Prog: use lsquic_str2ver() when processing -o version flag 453 - Remove unused CTIM and SRBF transport parameters 454 - Disable QUIC versions Q037 and Q038 by default 455 - Fix Windows compilation by including compat header file in 456 lshpack.c 457 - Address warnings produced by newer versions of gcc 458 - Future-proof: turn off -Werror 459 4602018-05-02 461 462 - [BUGFIX] Make lsquic_conn_quic_version() available 463 - Switch to using ls-hpack 1.1 464 - [BUGFIX] Do not ignore stream resets after receiving FIN 465 4662018-04-27 467 468 - HPACK: do not allow header block to end with table size update. 469 4702018-04-25 471 472 - [BUGFIX] Do not create gap in sent packnos when squeezing delayed 473 packets. 474 - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes. 475 - [BUGFIX] connections with blocked scheduled packets are not tickable 476 for sending. 477 - [BUGFIX] Conn is tickable if it wants to send a connection-level 478 frame. 479 4802018-04-23 481 482 - Fix busy loop: tickable must make progress. When connection is 483 self-reporting as tickable, it must make progress when ticked. There 484 are two issues: 485 1. If there are buffered packets, the connection is only tickable if 486 they can be sent out. 487 2. A connection is tickable if there are streams on the servicing 488 queue. When the tick occurs, we must service the stream 489 independent of whether any packets are sent. 490 - Fix assertion in pacer which can be incorrect under some 491 conditions. 492 - cmake: do not turn on address sanitizer if in Travis. 493 4942018-04-20 495 496 - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's 497 changes. 498 4992018-04-19 500 501 - [BUGFIX] Add connection to Tickable Queue on stream write 502 - cmake: use MSVC variable instead of trying to detect 503 - engine: improve connection incref/decref logging 504 - stream: don't ignore errors that may occur on triggered flush 505 - connection: remove obsolete method 506 - engine: indicate connection as tickable if previous call went 507 over threshold 508 5092018-04-09 510 511 [API Change, OPTIMIZATION] Only process conns that need to be processed 512 513 The API is simplified: do not expose the user code to several 514 queues. A "connection queue" is now an internal concept. 515 The user processes connections using the single function 516 lsquic_engine_process_conns(). When this function is called, 517 only those connections are processed that need to be processed. 518 A connection needs to be processed when: 519 520 1. New incoming packets have been fed to the connection. 521 2. User wants to read from a stream that is readable. 522 3. User wants to write to a stream that is writeable. 523 4. There are buffered packets that can be sent out. (This 524 means that the user wrote to a stream outside of the 525 lsquic library callback.) 526 5. A control frame (such as BLOCKED) needs to be sent out. 527 6. A stream needs to be serviced or delayed stream needs to 528 be created. 529 7. An alarm rings. 530 8. Pacer timer expires. 531 532 To achieve this, the library places the connections into two 533 priority queues (min heaps): 534 535 1. Tickable Queue; and 536 2. Advisory Tick Time queue (ATTQ). 537 538 Each time lsquic_engine_process_conns() is called, the Tickable 539 Queue is emptied. After the connections have been ticked, they are 540 queried again: if a connection is not being closed, it is placed 541 either in the Tickable Queue if it is ready to be ticked again or 542 it is placed in the Advisory Tick Time Queue. It is assumed that 543 a connection always has at least one timer set (the idle alarm). 544 545 The connections in the Tickable Queue are arranged in the least 546 recently ticked order. This lets connections that have been quiet 547 longer to get their packets scheduled first. 548 549 This change means that the library no longer needs to be ticked 550 periodically. The user code can query the library when is the 551 next tick event and schedule it exactly. When connections are 552 processed, only the tickable connections are processed, not *all* 553 the connections. When there are no tick events, it means that no 554 timer event is necessary -- only the file descriptor READ event 555 is active. 556 557 The following are improvements and simplifications that have 558 been triggered: 559 560 - Queue of connections with incoming packets is gone. 561 - "Pending Read/Write Events" Queue is gone (along with its 562 history and progress checks). This queue has become the 563 Tickable Queue. 564 - The connection hash no longer needs to track the connection 565 insertion order. 566 5672018-04-02 568 569 - [FEATURE] Windows support 570 571 - Reduce stack use -- outgoing packet batch is now allocated on the heap. 572 5732018-03-09 574 575 - [OPTIMIZATION] Merge series of ACKs if possible 576 577 Parsed single-range ACK frames (that is the majority of frames) are 578 saved in the connection and their processing is deferred until the 579 connection is ticked. If several ACKs come in a series between 580 adjacent ticks, we check whether the latest ACK is a strict superset 581 of the saved ACK. If it is, the older ACK is not processed. 582 583 If ACK frames can be merged, they are merged and only one of them is 584 either processed or saved. 585 586 - [OPTIMIZATION] Speed up ACK verification by simplifying send history. 587 588 Never generate a gap in the sent packet number sequence. This reduces 589 the send history to a single number instead of potentially a series of 590 packet ranges and thereby speeds up ACK verification. 591 592 By default, detecting a gap in the send history is not fatal: only a 593 single warning is generated per connection. The connection can continue 594 to operate even if the ACK verification code is not able to detect some 595 inconsistencies. 596 597 - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct 598 599 The first part of struct lsquic_send_ctl now consists of members that 600 are used in lsquic_send_ctl_got_ack() (in the absense of packet loss, 601 which is the normal case). To speed up reads and writes, we no longer 602 try to save space by using 8- and 16-bit integers. Use regular integer 603 width for everything. 604 605 - [OPTIMIZATION] Cache size of sent packet. 606 607 - [OPTIMIZATION] Keep track of the largest ACKed in packet_out 608 609 Instead of parsing our own ACK frames when packet has been acked, 610 use the value saved in the packet_out structure when the ACK frame 611 was generated. 612 613 - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop 614 615 - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed 616 617 - [OPTIMIZATION] Several code-level optimizations to ACK processing. 618 619 - Fix: http_client: fix -I flag; switch assert() to abort() 620 6212018-02-26 622 - [API Change] lsquic_engine_connect() returns pointer to the connection 623 object. 624 - [API Change] Add lsquic_conn_get_engine() to get engine object from 625 connection object. 626 - [API Change] Add lsquic_conn_status() to query connection status. 627 - [API Change] Add add lsquic_conn_set_ctx(). 628 - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345 629 - [OPTIMIZATION] Process handshake STREAM frames as soon as packet 630 arrives. 631 - [OPTIMIZATION] Do not compile expensive send controller sanity check 632 by default. 633 - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header. 634 - [OPTIMIZATION] Only make squeeze function call if necessary. 635 - [OPTIMIZATION] Speed up Q039 ACK frame parsing. 636 - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes. 637 - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating. 638 - [OPTIMIZATION] Prefetch next unacked packet when processing ACK. 639 - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are. 640 ordered. 641 - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation 642 - Fix: reset incoming streams that arrive after we send GOAWAY. 643 - Fix: delay client on_new_conn() call until connection is fully set up. 644 - Fixes to buffered packets logic: splitting, STREAM frame elision. 645 - Fix: do not dispatch on_write callback if no packets are available. 646 - Fix WINDOW_UPDATE send and resend logic. 647 - Fix STREAM frame extension code. 648 - Fix: Drop unflushed data when stream is reset. 649 - Switch to tracking CWND using bytes rather than packets. 650 - Fix TCP friendly adjustment in cubic. 651 - Fix: do not generate invalid STOP_WAITING frames during high packet 652 loss. 653 - Pacer fixes. 654 6552017-12-18 656 657 - Fix: better follow cubic curve after idle period 658 - Fix: add missing parts to outgoing packet splitting code 659 - Fix: compilation using gcc 4.8.4 660 6612017-10-31 662 663 - Add APIs.txt -- describes LSQUIC APIs 664 6652017-10-31 666 667 - [API Change] Sendfile-like functionality is gone. The stream no 668 longer opens files and deals with file descriptors. (Among other 669 things, this makes the code more portable.) Three writing functions 670 are provided: 671 672 lsquic_stream_write 673 lsquic_stream_writev 674 lsquic_stream_writef (NEW) 675 676 lsquic_stream_writef() is given an abstract reader that has function 677 pointers for size() and read() functions which the user can implement. 678 This is the most flexible way. lsquic_stream_write() and 679 lsquic_stream_writev() are now both implemented as wrappers around 680 lsquic_stream_writef(). 681 682 - [OPTIMIZATION] When writing to stream, be it within or without the 683 on_write() callback, place data directly into packet buffer, 684 bypassing auxiliary data structures. This reduces amount of memory 685 required, for the amount of data that can be written is limited 686 by the congestion window. 687 688 To support writes outside the on_write() callback, we keep N 689 outgoing packet buffers per connection which can be written to 690 by any stream. One half of these are reserved for the highest 691 priority stream(s), the other half for all other streams. This way, 692 low-priority streams cannot write instead of high-priority streams 693 and, on the other hand, low-priority streams get a chance to send 694 their packets out. 695 696 The algorithm is as follows: 697 698 - When user writes to stream outside of the callback: 699 - If this is the highest priority stream, place it onto the 700 reserved N/2 queue or fail. 701 (The actual size of this queue is dynamic -- MAX(N/2, CWND) -- 702 rather than N/2, allowing high-priority streams to write as 703 much as can be sent.) 704 - If the stream is not the highest priority, try to place the 705 data onto the reserved N/2 queue or fail. 706 - When tick occurs *and* more packets can be scheduled: 707 - Transfer packets from the high N/2 queue to the scheduled 708 queue. 709 - If more scheduling is allowed: 710 - Call on_write callbacks for highest-priority streams, 711 placing resulting packets directly onto the scheduled queue. 712 - If more scheduling is allowed: 713 - Transfer packets from the low N/2 queue to the scheduled 714 queue. 715 - If more scheduling is allowed: 716 - Call on_write callbacks for non-highest-priority streams, 717 placing resulting packets directly onto the scheduled queue 718 719 The number N is currently 20, but it could be varied based on 720 resource usage. 721 722 - If stream is created due to incoming headers, make headers readable 723 from on_new. 724 725 - Outgoing packets are no longer marked non-writeable to prevent placing 726 more than one STREAM frame from the same stream into a single packet. 727 This property is maintained via code flow and an explicit check. 728 Packets for stream data are allocated using a special function. 729 730 - STREAM frame elision is cheaper, as we only perform it if a reset 731 stream has outgoing packets referencing it. 732 733 - lsquic_packet_out_t is smaller, as stream_rec elements are now 734 inside a union. 735 7362017-10-12 737 738 - Do not send RST_STREAM when stream is closed for reading 739 - Raise maximum header size from 4K to 64K 740 - Check header name and value lengths against maximum imposed by HPACK 741 - Fix NULL dereference in stream flow controller 742 7432017-10-09 744 745 - Hide handshake implementation behind a set of function pointers 746 - Use monotonically increasing clock 747 - Make sure that retx delay is not larger than the max of 60 seconds 748 7492017-09-29 750 751 - A few fixes to code and README 752 7532017-09-28 754 755 - Add support for Q041; drop support for Q040 756 7572017-09-27 758 759 - Fix CMakeLists.txt: BoringSSL include and lib was mixed up 760 7612017-09-26 762 763 - Add support for Mac OS 764 - Add support for Raspberry Pi 765 - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly 766 7672017-09-22 768 769 - Initial release 770