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