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