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