CHANGELOG revision a4f5dac3
12020-01-14
2    - 2.8.8
3    - [BUGFIX] Invalid read when parsing IETF transport parameters
4      (this was benign).
5    - [OPTIMIZATION] Frame bundling when using buffered packets in
6      IETF QUIC: a) flush QPACK decoder stream and b) include ACKs
7      in opportunistic fashion.
8    - Fix HTTP/3 framing unit test.
9    - Code cleanup.
10
112020-01-09
12    - 2.8.7
13    - [BUGFIX] Initial packet size check for IETF mini conn applies to
14      UDP payload, not QUIC packet.
15    - Support old and new school loss_bits transport parameter.
16    - Use Q run length of 64 as suggested in the loss bits Draft.
17    - Undo square wave count when packet is delayed.
18    - Code cleanup; minor fixes.
19
202020-01-06
21    - 2.8.5
22    - [HTTP3] Verify number of bytes in incoming DATA frames against
23      content-length.
24    - [HTTP3] Stop issuing streams credits if peer stops opening QPACK
25      decoder window.  This addresses a potential attack whereby client
26      can cause the server to keep allocating memory.  See Security
27      Considerations in the QPACK draft.
28    - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later.
29    - [BUGFIX] Init IETF connection flow controller using correct setting.
30    - [BUGFIX] Fix unintended sign extension when removing header protection.
31    - Code cleanup and minor fixes.
32
332019-12-30
34    - 2.8.1
35    - [FEATURE] Use occasional packet number gaps to detect optimistic
36      ACK attacks.
37    - [BUGFIX] Q050 client: all packet numbers are in the App PNS.
38    - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range
39      ACK frames.
40    - IETF QUIC: use RTT estimate in ack timeout calculation.
41    - IETF handshake: abort conn when unexpected errors occur.
42    - Use PING rather than MAX_DATA frames to elicit ACKs from peer.
43    - Server: enforce 1200 byte Initial minimum packet size.
44    - [CLEANUP] Remove code to disable gQUIC crypto.
45    - [CLEANUP] Remove n_timestamps from ACK info struct.
46    - Optimize driver: reuse previous ancillary message when possible.
47
482019-12-23
49    - 2.8.0
50    - [FEATURE] Add support for Q050.
51    - [OPTIMIZATION] Reduce mallocs in gQUIC handshake.
52    - [BUGFIX] Disable redo of failed STREAM frame insertion with debug
53      logging.
54
552019-12-18
56    - 2.7.3
57    - [DEBUG] Further dedup next advisory tick messages when reason is
58      the same.
59    - [BUGFIX] Update size of `a` array in TP struct.  Fixes (benign)
60      GitHub bug #94.
61    - Use Cubic by default again instead of BBR, as it delivers more
62      consistent performance.
63
642019-12-11
65    - 2.7.2
66    - [BUGFIX] Send controller: update scheduled bytes when DCID length
67      changes (IETF client).
68    - [BUGFIX] Drop alarm check from sanity test.  It no longer works now
69      that we use loss chains.
70    - [PORTABILITY] Fix build on Alpine Linux.
71    - [PORTABILITY] Fix build using XCode.
72    - Client initial DCID length: use RAND_bytes() instead of rand(3).
73    - Add unit tests for connection min heap.
74    - [DEBUG] Log CID in gQUIC handshake module
75    - [DEBUG] Turn on extra checks for IETF client send controller.
76    - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer.
77    - [DEBUG] QPACK decoder handler: log header error code.
78
792019-12-05
80    - 2.7.1
81    - [BUGFIX] client: don't call ignore_init() in middle of batch send.
82      ignore_init() makes an assumption that the send controller has access
83      to all outgoing packets.  This change wraps a few IETF full connection
84      methods to delay calling ignore_init() until the engine returns all
85      outgoing packets that were batched.
86    - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them.
87      This needs to be done because the value of errno may be lost on
88      some platforms.
89    - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes.
90    - [BUGFIX] Do not cancel header block processing after failure, as
91      QPACK releases the reference in that case.
92    - [CLEANUP] IETF encrypt: replace assert(0) with a warning.
93    - Several small improvements to the test server.
94
952019-11-27
96    - 2.7.0
97    - [API, FEATURE] Close connection immediately when ea_packets_out()
98      fails with errno != EAGAIN.  The API change is that errno is now
99      examined.  Make sure to set it if using something other than
100      sendmsg() to send packets.
101    - [CLEANUP] Immediate close logic in IETF full conn.
102    - [CLEANUP] Fix bogus warning about uninitialized `pair' variable.
103
1042019-11-22
105    - 2.6.7
106    - [FEATURE] Implement the QL extension (offered by default).
107    - [BUGFIX] Abort when encountering unexpected HTTP/3 frames.
108    - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly.
109    - [DEBUG] Turn on debug message for next advisory tick.
110
1112019-11-20
112    - 2.6.6
113    - [BUGFIX] Using HTTP/3 to HTTP/1.x converter.
114    - [BUGFIX] Truncate log messages instead of throwing them away.
115
1162019-11-15
117    - 2.6.5
118    - [BUGFIX] High priority buffered packet queue length.
119    - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds.
120
1212019-11-12
122    - 2.6.3
123    - [BUGFIX] Close DATA frames with empty payload correctly.
124
1252019-11-11
126    - 2.6.2
127    - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular
128      packets.
129    - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets.
130    - [BUGFIX] Truncate ACK frame rather instead of aborting IETF
131      connection.
132    - [BUGFIX] Client: don't send duplicate reset tokens.
133    - [BUGFIX] Remove invalid assertion in H3 framing code.
134    - Silence a warning in send ctl by restructuring switch() statement.
135
1362019-11-08
137    - 2.6.1
138    - [BUGFIX] set retry token on all resubmitted packets.
139    - Event log: log sent packet flags.  In particular, this allows one
140      to see whether token was sent.
141    - Don't migrate client if es_allow_migration is false.
142
1432019-11-07
144    - 2.6.0
145    - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support
146
1472019-11-07
148    - 2.5.2
149    - [BUGFIX] argument order to gQUIC client constructor.  Regression
150      introduced in 2.5.0.
151    - [BUGFIX] split buffered packet error recovery: destroy the correct
152      packet.
153
1542019-11-04
155    - 2.5.1
156    - [BUGFIX] Fix double-free when emptying a packet number space.
157    - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly.
158    - [BUGFIX] Use random values in bits 4 and 5 of the first byte of
159      verneg packets (regression introduced in 2.5.0).
160    - [OPTIMIZATION] Don't compile in expensive attq checks by default.
161    - [OPTIMIZATION] http_server: compile regexes only once.
162
1632019-10-31
164    - 2.5.0
165    - [API] lsquic_engine_connect() can now be passed QUIC version to use.
166    - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent.
167    - [BUGFIX] Don't evict streams from priority iterator if there is
168      only one queue.
169    - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes.
170    - Use ls-qpack v0.10.7.
171
1722019-10-24
173    - 2.4.10
174    - [BUGFIX] IETF QUIC server: fix uninitialized variable use.
175    - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object.
176    - [BUGFIX] Use issuer name and serial number to cache certs (SKID
177      values are not unique).
178    - [BUGFIX] Always set the idle alarm in IETF connection so that it
179      can time out.
180    - Use ls-qpack v0.10.6, as it silences some warnings.
181
1822019-10-21
183    - 2.4.8
184    - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5.
185
1862019-10-15
187    - 2.4.7
188    - Add echo client and server to the distibution.
189    - Add MD5 client and server to the distibution.
190    - Fix http_client: check command-line arguments better, prevent crash.
191    - Fix IETF conn: can_write_ack() should only care about APP PNS.
192    - Client: delay stream creation until handshake succeds.
193    - Reset HTTP stream whose write end is closed prematurely.
194    - Fix tickable(): mirror behavior of tick() wrt buffered packets.
195    - Log reason why engine is tickable.
196
1972019-10-11
198    - 2.4.6
199    - Minor code cleanup and logging improvements.
200    - Server and client programs: include library version (e.g. 2.4.6)
201      into `server' and `user-agent' headers.
202
2032019-10-08
204    - 2.4.5
205    - [OPTIMIZATION]: flush encoder stream only when necessary.
206    - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix.
207    - [BUGFIX] Typo in IETF conn SETTINGS writer.
208    - Use latest BoringSSL.
209
2102019-10-08
211    - 2.4.4
212    - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header.
213    - [BUGFIX] NULL dereference when H3 frame header would be split.
214    - [BUGFIX] Do not close fixed-size H3 frame prematurely.
215    - [BUGFIX] Allow PING frames in IETF mini conn.
216    - [BUGFIX] Mini conns: don't send any packets after receiving
217      CONNECTION_CLOSE.
218    - [BUGFIX] Client migration: reserve slot for DCID from transport params.
219    - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there.
220    - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a
221      valid stream number).
222    - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected.
223    - [OPTIMIZATION] Closed connection only gets one chance to send packets.
224    - [OPTIMIZATION] Flush headers stream before packetizing stream data.
225    - [OPTIMIZATION] process QPACK encoder STREAM frames immediately.
226    - Update ls-qpack to v0.10.1.
227
2282019-09-30
229    - 2.4.3
230    - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header.
231      For example, h3-Q043.  Chrome will switch to using this format at
232      some point in the future.
233    - [BUGFIX] Send correct value in max_streams_uni transport param
234    - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set
235      to 0xFFFFFFFF
236
2372019-09-23
238    - 2.4.2
239    - [BUGFIX] H3 framing: fix zero-byte write when space is available
240    - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream
241      is closed
242    - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY
243    - [BUGFIX] Fix use-after-free in IETF full conn
244    - [OPTIMIZATION] Wait for session tickets for two seconds and then drop
245      SSL object and crypto streams.
246
2472019-09-18
248    - 2.4.0
249    - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support
250
2512019-09-13
252    - 2.3.1
253    - [BUGFIX] Fix memory leaks
254    - [BUGFIX] Fix unit tests
255
2562019-09-12
257    - 2.3.0
258    - [FEATURE] BBR congestion control is on by default
259    - [BUGFIX] BBR app-limited logic
260    - [BUGFIX] Fix uninitialized warnings in IETF
261    - [BUGFIX] Update ls-qpack to v0.9.14
262    - [CLEANUP] Code cleanup
263
2642019-09-11
265    - 2.2.0
266    - [FEATURE] Server code is included in the library
267    - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22)
268
2692019-05-13
270    - 1.21.2
271    - [OPTIMIZATION] HPACK: use history to improve compression performance
272
2732019-05-06
274    - 1.21.1
275    - [BUGFIX] If FIN or RST not received, don't delay stream destruction.
276    - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to
277      search static and dynamic tables.
278
2792019-04-12
280    - 1.21.0
281    - [FEATURE] Add qlog log module.
282
2832019-04-01
284    - 1.20.0
285    - [FEATURE] Add support for Q046.
286
2872019-03-19
288    - 1.19.6
289    - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we
290      send.  ACK frames placed in packets in buffered queues (optimization
291      introduced in 1.17.15) can be preceded by an ACK frame generated later.
292      In this case, the older ACK frame should not be sent out, as Chromium-
293      based servers flags decrease in the ACK frame's Largest Observed value
294      as an error.
295
2962019-03-05
297    - 1.19.5
298    - [BUGFIX] Use correct public key from PUBS based on KEXS index.
299    - [BUGFIX] Check flags before dispatching writes, avoiding assert.
300    - [BUGFIX] Set :scheme to "https" (instead of "HTTP").
301
3022019-02-25
303    - 1.19.4
304    - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob.
305    - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed.
306    - Log number of pacer calls at DEBUG, rather than NOTICE, level.
307
3082019-02-18
309    - 1.19.3
310    - [BUGFIX] Q044: don't encode packet number in 6 bytes.  Six-byte
311      packet number encoding does not exist in Q044.  This fixes a
312      regression introduced in '[BUGFIX] Buffered packets can contain
313      ACK frames' -- we need to keep QUIC version in mind when selecting
314      the longest possible packet number encoding used for the buffered
315      packet that carries the ACK.
316    - [BUGFIX] Do not increase CWND when timeout occurs.
317    - http_client: support setting handshake timeout on command line.
318      Use -o handshake_to=timeout.
319    - http_client: use -k to connect UDP socket to pick up ICMP errors.
320    - http_client: allow pathless mode, when only handshake is performed
321      without issuing any requests.  This can be done by simply not
322      specifying a -p flag on the command line.
323
3242019-02-11
325    - 1.19.2
326    - [BUGFIX] Begin negotiation with version provided in 0-RTT info.
327    - [BUGFIX] Version checking in zero_rtt deserialize function.
328
3292019-02-04
330    - 1.19.1
331    - [BUGFIX] Fix Windows build.
332
3332019-02-04
334    - 1.19.0
335    - [FEATURE, API Change] 0-RTT support.  Add function to export 0-RTT
336      information; it can be supplied to a subsequent connect() call.
337    - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support.
338    - [BUGFIX] Resuscitate the Windows build.
339    - [BUGFIX] Send HTTP settings (max header list size) if necessary.
340    - [BUGFIX] Buffered packets can contain ACK frames.
341    - [BUGFIX] Make packet writeable once all STREAM frames are elided.
342    - [BUGFIX] Fix potential null dereference when realloc fails.
343    - cmake: simplify build configuration.
344
3452019-01-28
346    - 1.18.0
347    - [API Change] Can specify clock granularity in engine settings.
348    - [BUGFIX] Pacer uses fixed clock granularity.  Since the change on
349      2018-04-09, it is not necessary to try to approximate the next tick
350      time in the pacer: it can use fix clock granularity specified by
351      the user.
352    - [BUGFIX] Do not tick constantly before handshake is done.
353    - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK.  Even
354      if we cannot allocate *more* packets, we could still be able to write
355      to one already allocated.
356    - [BUGFIX] Do not schedule pacer if there are no lost packets.
357
3582019-01-17
359    - 1.17.15
360    - [BUGFIX] http_client: make sure only one read per on_read() callback
361      is performed in the header conversion bypass (-B) mode.
362    - http_client: with -E, assign random priority when stream is created.
363    - [OPTIMIZATION] On immediate write, place an ACK frame into the first
364      buffered packet if an ACK is queued.  This reduces the number of
365      standalone ACK packets.
366    - [OPTIMIZATION] Allow placing more than one STREAM frame from the same
367      stream into an outgoing packet.  This change minimizes the number of
368      buffered packets required to store several small HTTP messages by
369      virtue of allowing more than one STREAM frame from HEADERS stream in
370      the same packet.
371    - [OPTIMIZATION] Flush headers when writing to buffered packets.  This
372      causes the headers to be written to the same buffered packet queue,
373      thereby improving packet utilization, especially for small HTTP
374      messages.
375
3762019-01-16
377    - 1.17.14
378    - [FEATURE] http_client can now collect stats: time to connect, TTFB,
379      time to download, requests per seconds, and bandwidth.  See -t flag.
380    - [BUGFIX] http_client: -B, -K, and -r can be used at the same time.
381    - [BUGFIX] http_client: do not display cert chain before each request.
382      Now this is only done once per connection, if the handshake is
383      successful and -a option is given.
384    - [BUGFIX] Do not wait to dispatch on_close() after reading.  If a
385      stream is scheduled to be closed after on_read() callback returns,
386      close it immediately instead of waiting until the end of the tick.
387      If client creates new request from on_close() event, they will be
388      processed in the same tick instead of waiting for the next one.
389    - [BUGFIX] HEADERS stream is critical: always treat it with highest
390      priority.
391
3922019-01-10
393    - 1.17.12
394    - [FEATURE] http_client can now issue parallel requests in the context
395      of a single connection.  See -w option.
396
3972019-01-03
398    - 1.17.11
399    - Fix strict aliasing warning in optimized compilation.
400
4012018-12-27
402    - 1.17.10
403    - Fix the example program to be able to use parallel connections
404      again.  (See the -n argument.)
405
4062018-12-18
407    - 1.17.9
408    - [BUGFIX] Engine: reduce minimum batch size from 256 to 4
409
4102018-12-10
411    - 1.17.8
412    - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux
413
4142018-12-03
415    - 1.17.7
416    - [BUGFIX] Do not unset PING alarm before ringing expired alarms.
417      This prevented PING from ever being sent.
418
4192018-11-29
420    - 1.17.6
421    - Add failsafe: resume sending packets after some time
422
423      The change puts a 1-second limit on the amount of time the engine
424      will not send packets after some packets are delayed.  This makes
425      the library robust in case the user does not unblock the engine
426      explicitly using lsquic_engine_send_unsent_packets() call.
427
428    - [BUGFIX] Handle corner cases in send controller when packets are
429      a) delayed or b) dropped during repackaging.
430    - [BUGFIX] Memory leak: destroy buffered packets during controller
431      cleanup.
432
4332018-11-16
434    - 1.17.3
435    - [BUGFIX] Do not send STOP_WAITING frames when using Q044
436
4372018-10-19
438    - 1.17.2
439    - [BUGFIX] Memory leak in test_frame_rw unit test.
440    - [BUGFIX] Parsing packets with short IETF header: do not overwrite
441      flags.  (Only a problem in unit tests -- benign otherwise.)
442
4432018-10-16
444    - 1.17.0
445    - [API Change] Packet out Memory Interface (PMI) update:
446      - Split PMI pool return into pmi_release and pmi_return
447      - PMI callbacks take peer_ctx and is_ipv6 arguments
448    - [BUGFIX] Fix use-after-free when certificate is updated
449    - Silence gcc warning in optimized mode by performing useless
450      initialization
451    - cmake: use the standard variable CMAKE_BUILD_TYPE instead of
452      DEVEL_MODE
453
4542018-10-03
455    - 1.16.0
456    - [API Change] Add lsquic_conn_n_avail_streams()
457    - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on
458
4592018-09-27
460    - 1.15.0
461    - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses
462    - [BUGFIX] free uncompressed headers correctly when error occurs
463
4642018-09-12
465    - 1.14.3
466    - [BUGFIX] Do not abort conn on STREAM frame for a reset stream
467    - [BUGFIX] Drop packets that would become empty due to repackaging.
468      Packets on the scheduled queue may be marked for repackaging.
469      Frames such as ACK frame that are never resent are removed from
470      repackaged packets.  We must check that the newly repackaged packet
471      would not be empty.  If it would be, it is destroyed instead and
472      the next packet on the scheduled queue is used.  Note that this
473      change only affects the logic to return the next packet to be sent.
474      Lost packets that are being rescheduled are already processed in
475      this fashion.
476    - Byteswap CID before logging it - this makes it match Chrome CIDs.
477      (Except Q035, which is the last little-endian GQUIC version we
478      support.)
479
4802018-09-06
481    - 1.14.0
482    - [API Change] Disable packet sending if full batch cannot be sent
483      If lsquic_packets_out_f() cannot send the whole batch, disable
484      packet sending until lsquic_engine_send_unsent_packets() is called.
485    - [BUGFIX] Handle case when STREAM frame does not fit.
486    - [BUGFIX] Always allow incoming STREAM frames to overlap.  Peers
487      may send overlapping STREAM frames even if using versions older
488      than Q043.
489    - Custom header set fixes:
490      - set "FIN reached" flag when custom header with FIN flag is
491        claimed;
492      - do not return custom header set for a reset stream.
493
4942018-08-27
495
496    - 1.13.0
497    - [FEATURE, API Change] Add ability to create custom header set
498      objects via callbacks.  This avoids reading and re-parsing
499      headers from the stream.
500
5012018-08-27
502
503    - 1.12.4
504    - Fix memory leak when engine is destroyed
505    - Fix memory leak in http_client
506    - Fix gcc warning in unit tests
507
5082018-08-22
509
510    - 1.12.3
511    - [BUGFIX] Fix duplicate STREAM frame detection
512
5132018-08-20
514
515    - 1.12.2
516    - [BUGFIX] Update count of scheduled bytes when adjusting size of
517      an already-scheduled packet.
518    - Emit info instead of warning messages when stream is used in
519      unexpected ways.
520
5212018-08-17
522
523    - 1.12.0
524    - [FEATURE, API Change] Add support for certificate verification
525
5262018-08-16
527
528    - 1.11.1
529    - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code
530
5312018-08-15
532
533    - 1.11.0
534    - [FEATURE] Add support for Q044.
535
5362018-08-09
537
538    - 1.10.2
539    - [BUGFIX] Don't go over limit when creating delayed streams
540
5412018-07-10
542
543    - 1.10.1
544    - [BUGFIX]  process connections after each batch of packets is read
545      This avoids a problem of accumulating a very large list of packets
546      (possible when speeds are high and socket's receive buffer is large)
547      and processing it all at once.
548    - If glibc is older than 2.17, link with rt.  This is necessary for
549      clock_getres(2).
550    - Add version macros to lsquic.h; remove unnecessary includes.
551
5522018-06-13
553
554    - [BUGFIX] allow multiple parallel connections by default
555
556      Use the original method of tracking connections by CIDs by default.
557      If zero-sized CID support is turned on, connections are tracked by
558      the address.  A new connection is not created if another connection
559      is using the same network address
560
5612018-05-30
562
563    - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets
564
5652018-05-24
566
567    - Close connection properly when packet encryption fails
568
5692018-05-23
570
571    - [BUGFIX] Do not produce packet sequence gaps due to delayed packets
572
5732018-05-21
574
575    - [API Change] Add optional callback to call when handshake is done
576    - [API Change, BUGFIX] After send failure, wait until transport available
577
5782018-05-18
579
580    - [API] Expose useful lsquic_ver2str[] in lsquic.h
581    - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision
582    - Improve checks of number of incoming streams limit and associated
583      error reporting.
584    - [BUGFIX] Command-line option `-6` now works correctly.
585
5862018-05-16
587
588    - [FEATURE] DNS resolution
589    - [BUGFIX] Frame insertion mis-ID as overlap instead of dup
590    - http_client: fix priority range generated by -E flag
591
5922018-05-09
593
594    - [FEATURE] Add support for Q043.
595    - Support for versions Q037, Q038, Q041, and Q042 has been removed.
596    - Fix typo in debug message.
597    - Fix code indentation.
598    - Add /* fallthru */ comment to stop newer gcc from complaining.
599    - Logger: fix compilation of optimized Windows build.
600
6012018-05-04
602
603    - [FEATURE] Add support for Q042.
604    - Remove comment: MSPC is obsolete (no code changes)
605    - Prog: use lsquic_str2ver() when processing -o version flag
606    - Remove unused CTIM and SRBF transport parameters
607    - Disable QUIC versions Q037 and Q038 by default
608    - Fix Windows compilation by including compat header file in
609      lshpack.c
610    - Address warnings produced by newer versions of gcc
611    - Future-proof: turn off -Werror
612
6132018-05-02
614
615    - [BUGFIX] Make lsquic_conn_quic_version() available
616    - Switch to using ls-hpack 1.1
617    - [BUGFIX] Do not ignore stream resets after receiving FIN
618
6192018-04-27
620
621    - HPACK: do not allow header block to end with table size update.
622
6232018-04-25
624
625    - [BUGFIX] Do not create gap in sent packnos when squeezing delayed
626      packets.
627    - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes.
628    - [BUGFIX] connections with blocked scheduled packets are not tickable
629      for sending.
630    - [BUGFIX] Conn is tickable if it wants to send a connection-level
631      frame.
632
6332018-04-23
634
635    - Fix busy loop: tickable must make progress.  When connection is
636      self-reporting as tickable, it must make progress when ticked.  There
637      are two issues:
638        1. If there are buffered packets, the connection is only tickable if
639           they can be sent out.
640        2. A connection is tickable if there are streams on the servicing
641           queue.  When the tick occurs, we must service the stream
642           independent of whether any packets are sent.
643    - Fix assertion in pacer which can be incorrect under some
644      conditions.
645    - cmake: do not turn on address sanitizer if in Travis.
646
6472018-04-20
648
649    - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's
650      changes.
651
6522018-04-19
653
654    - [BUGFIX] Add connection to Tickable Queue on stream write
655    - cmake: use MSVC variable instead of trying to detect
656    - engine: improve connection incref/decref logging
657    - stream: don't ignore errors that may occur on triggered flush
658    - connection: remove obsolete method
659    - engine: indicate connection as tickable if previous call went
660      over threshold
661
6622018-04-09
663
664    [API Change, OPTIMIZATION] Only process conns that need to be processed
665
666    The API is simplified: do not expose the user code to several
667    queues.  A "connection queue" is now an internal concept.
668    The user processes connections using the single function
669    lsquic_engine_process_conns().  When this function is called,
670    only those connections are processed that need to be processed.
671    A connection needs to be processed when:
672
673        1. New incoming packets have been fed to the connection.
674        2. User wants to read from a stream that is readable.
675        3. User wants to write to a stream that is writeable.
676        4. There are buffered packets that can be sent out.  (This
677           means that the user wrote to a stream outside of the
678           lsquic library callback.)
679        5. A control frame (such as BLOCKED) needs to be sent out.
680        6. A stream needs to be serviced or delayed stream needs to
681           be created.
682        7. An alarm rings.
683        8. Pacer timer expires.
684
685    To achieve this, the library places the connections into two
686    priority queues (min heaps):
687
688        1. Tickable Queue; and
689        2. Advisory Tick Time queue (ATTQ).
690
691    Each time lsquic_engine_process_conns() is called, the Tickable
692    Queue is emptied.  After the connections have been ticked, they are
693    queried again: if a connection is not being closed, it is placed
694    either in the Tickable Queue if it is ready to be ticked again or
695    it is placed in the Advisory Tick Time Queue.  It is assumed that
696    a connection always has at least one timer set (the idle alarm).
697
698    The connections in the Tickable Queue are arranged in the least
699    recently ticked order.  This lets connections that have been quiet
700    longer to get their packets scheduled first.
701
702    This change means that the library no longer needs to be ticked
703    periodically.  The user code can query the library when is the
704    next tick event and schedule it exactly.  When connections are
705    processed, only the tickable connections are processed, not *all*
706    the connections.  When there are no tick events, it means that no
707    timer event is necessary -- only the file descriptor READ event
708    is active.
709
710    The following are improvements and simplifications that have
711    been triggered:
712
713        - Queue of connections with incoming packets is gone.
714        - "Pending Read/Write Events" Queue is gone (along with its
715          history and progress checks).  This queue has become the
716          Tickable Queue.
717        - The connection hash no longer needs to track the connection
718          insertion order.
719
7202018-04-02
721
722    - [FEATURE] Windows support
723
724    - Reduce stack use -- outgoing packet batch is now allocated on the heap.
725
7262018-03-09
727
728    - [OPTIMIZATION] Merge series of ACKs if possible
729
730      Parsed single-range ACK frames (that is the majority of frames) are
731      saved in the connection and their processing is deferred until the
732      connection is ticked.  If several ACKs come in a series between
733      adjacent ticks, we check whether the latest ACK is a strict superset
734      of the saved ACK.  If it is, the older ACK is not processed.
735
736      If ACK frames can be merged, they are merged and only one of them is
737      either processed or saved.
738
739    - [OPTIMIZATION] Speed up ACK verification by simplifying send history.
740
741      Never generate a gap in the sent packet number sequence.  This reduces
742      the send history to a single number instead of potentially a series of
743      packet ranges and thereby speeds up ACK verification.
744
745      By default, detecting a gap in the send history is not fatal: only a
746      single warning is generated per connection.  The connection can continue
747      to operate even if the ACK verification code is not able to detect some
748      inconsistencies.
749
750    - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct
751
752      The first part of struct lsquic_send_ctl now consists of members that
753      are used in lsquic_send_ctl_got_ack() (in the absense of packet loss,
754      which is the normal case).  To speed up reads and writes, we no longer
755      try to save space by using 8- and 16-bit integers.  Use regular integer
756      width for everything.
757
758    - [OPTIMIZATION] Cache size of sent packet.
759
760    - [OPTIMIZATION] Keep track of the largest ACKed in packet_out
761
762      Instead of parsing our own ACK frames when packet has been acked,
763      use the value saved in the packet_out structure when the ACK frame
764      was generated.
765
766    - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop
767
768    - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed
769
770    - [OPTIMIZATION] Several code-level optimizations to ACK processing.
771
772    - Fix: http_client: fix -I flag; switch assert() to abort()
773
7742018-02-26
775    - [API Change] lsquic_engine_connect() returns pointer to the connection
776      object.
777    - [API Change] Add lsquic_conn_get_engine() to get engine object from
778      connection object.
779    - [API Change] Add lsquic_conn_status() to query connection status.
780    - [API Change] Add add lsquic_conn_set_ctx().
781    - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345
782    - [OPTIMIZATION] Process handshake STREAM frames as soon as packet
783      arrives.
784    - [OPTIMIZATION] Do not compile expensive send controller sanity check
785      by default.
786    - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header.
787    - [OPTIMIZATION] Only make squeeze function call if necessary.
788    - [OPTIMIZATION] Speed up Q039 ACK frame parsing.
789    - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes.
790    - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating.
791    - [OPTIMIZATION] Prefetch next unacked packet when processing ACK.
792    - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are.
793      ordered.
794    - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation
795    - Fix: reset incoming streams that arrive after we send GOAWAY.
796    - Fix: delay client on_new_conn() call until connection is fully set up.
797    - Fixes to buffered packets logic: splitting, STREAM frame elision.
798    - Fix: do not dispatch on_write callback if no packets are available.
799    - Fix WINDOW_UPDATE send and resend logic.
800    - Fix STREAM frame extension code.
801    - Fix: Drop unflushed data when stream is reset.
802    - Switch to tracking CWND using bytes rather than packets.
803    - Fix TCP friendly adjustment in cubic.
804    - Fix: do not generate invalid STOP_WAITING frames during high packet
805      loss.
806    - Pacer fixes.
807
8082017-12-18
809
810    - Fix: better follow cubic curve after idle period
811    - Fix: add missing parts to outgoing packet splitting code
812    - Fix: compilation using gcc 4.8.4
813
8142017-10-31
815
816    - Add APIs.txt -- describes LSQUIC APIs
817
8182017-10-31
819
820    - [API Change] Sendfile-like functionality is gone.  The stream no
821      longer opens files and deals with file descriptors.  (Among other
822      things, this makes the code more portable.)  Three writing functions
823      are provided:
824
825        lsquic_stream_write
826        lsquic_stream_writev
827        lsquic_stream_writef    (NEW)
828
829      lsquic_stream_writef() is given an abstract reader that has function
830      pointers for size() and read() functions which the user can implement.
831      This is the most flexible way.  lsquic_stream_write() and
832      lsquic_stream_writev() are now both implemented as wrappers around
833      lsquic_stream_writef().
834
835    - [OPTIMIZATION] When writing to stream, be it within or without the
836      on_write() callback, place data directly into packet buffer,
837      bypassing auxiliary data structures.  This reduces amount of memory
838      required, for the amount of data that can be written is limited
839      by the congestion window.
840
841      To support writes outside the on_write() callback, we keep N
842      outgoing packet buffers per connection which can be written to
843      by any stream.  One half of these are reserved for the highest
844      priority stream(s), the other half for all other streams.  This way,
845      low-priority streams cannot write instead of high-priority streams
846      and, on the other hand, low-priority streams get a chance to send
847      their packets out.
848
849      The algorithm is as follows:
850
851      - When user writes to stream outside of the callback:
852        - If this is the highest priority stream, place it onto the
853          reserved N/2 queue or fail.
854            (The actual size of this queue is dynamic -- MAX(N/2, CWND) --
855             rather than N/2, allowing high-priority streams to write as
856             much as can be sent.)
857        - If the stream is not the highest priority, try to place the
858          data onto the reserved N/2 queue or fail.
859      - When tick occurs *and* more packets can be scheduled:
860        - Transfer packets from the high N/2 queue to the scheduled
861          queue.
862        - If more scheduling is allowed:
863          - Call on_write callbacks for highest-priority streams,
864            placing resulting packets directly onto the scheduled queue.
865        - If more scheduling is allowed:
866          - Transfer packets from the low N/2 queue to the scheduled
867            queue.
868        - If more scheduling is allowed:
869          - Call on_write callbacks for non-highest-priority streams,
870            placing resulting packets directly onto the scheduled queue
871
872      The number N is currently 20, but it could be varied based on
873      resource usage.
874
875    - If stream is created due to incoming headers, make headers readable
876      from on_new.
877
878    - Outgoing packets are no longer marked non-writeable to prevent placing
879      more than one STREAM frame from the same stream into a single packet.
880      This property is maintained via code flow and an explicit check.
881      Packets for stream data are allocated using a special function.
882
883    - STREAM frame elision is cheaper, as we only perform it if a reset
884      stream has outgoing packets referencing it.
885
886    - lsquic_packet_out_t is smaller, as stream_rec elements are now
887      inside a union.
888
8892017-10-12
890
891    - Do not send RST_STREAM when stream is closed for reading
892    - Raise maximum header size from 4K to 64K
893    - Check header name and value lengths against maximum imposed by HPACK
894    - Fix NULL dereference in stream flow controller
895
8962017-10-09
897
898    - Hide handshake implementation behind a set of function pointers
899    - Use monotonically increasing clock
900    - Make sure that retx delay is not larger than the max of 60 seconds
901
9022017-09-29
903
904    - A few fixes to code and README
905
9062017-09-28
907
908    - Add support for Q041; drop support for Q040
909
9102017-09-27
911
912    - Fix CMakeLists.txt: BoringSSL include and lib was mixed up
913
9142017-09-26
915
916    - Add support for Mac OS
917    - Add support for Raspberry Pi
918    - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
919
9202017-09-22
921
922    - Initial release
923