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