CHANGELOG revision 4429f8ea
12020-10-28
2    - 2.24.0
3    - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.  Drop ID-30
4      and ID-31 support.
5    - [BUGFIX] Divide-by-zero in newly enabled conn stats code when no
6      packets were sent.
7    - [BUGFIX] Memory leak in gQUIC client when server hello cannot be
8      parsed.
9    - [BUGFIX] Server Initial packet size calculation.
10    - Log user-agent and CONN_CLOSE reason when peer reports error.
11    - Example programs: Specify ALPN for echo and md5 clients and servers
12      (issue #184).
13    - Example programs: Don't add "QUIC_" prefix to lines in keylog file
14      (issue #185).
15    - http_server: Fix fd leak in preadv mode; fix preadv() usage when
16      reading from disk.
17
182020-10-22
19    - 2.23.3
20    - [BUGFIX] Update packetization threshold when writing to stream
21      after packet size is reduced following an RTO.
22
232020-10-21
24    - 2.23.2
25    - Add QPACK stats collection and experimentation mode, see the new
26      es_qpack_experiment setting.
27    - Log busy connection stats every second using the new "conn-stats"
28      log module.
29    - Log about skipping only once.
30    - Update HTTP/3 greased frame type formula.
31    - Use ls-qpack v2.2.1.
32
332020-10-13
34    - 2.23.1
35    - [FEATURE] IETF Client 0-RTT support.
36    - [BUGFIX] Do not schedule MTU probe on first tick.
37    - [BUGFIX] Parsing DATAGRAM frame.
38    - [BUGFIX] If push promise fails, do not invoke hset destructor.
39    - [BUGFIX] Client: When connections are IDed by port number, check DCID.
40      Fixes issue #176.
41    - [BUGFIX] Regression introduced in 2.22.0: use correct number of
42      PNSs for IETF mini conn during promotion.
43    - Revert the 2.22.1 lsquic_is_valid_hs_packet change.  All that was
44      necessary is a change to the way we call it in lsquic_engine.  No
45      change to the function itself is required.
46
472020-10-08
48    - 2.22.1
49    - [BUGFIX] Function that checks validity of handshake packets.
50
512020-10-07
52    - 2.22.0
53    - [FEATURE] Extensible HTTP Priorities (HTTP/3 only).
54    - [FEATURE] Add conn context to packet-out memory interface (PR #175).
55    - [BUGFIX] gQUIC proof generation: allocate buffer big enough for
56      signature (issue #173).
57    - [BUGFIX] Make library thread-safe: drop use of global variables
58      (issue #133, issue #167).
59    - [BUGFIX] Deactivate only *recent* HQ frame, not any HQ frame.
60    - [BUGFIX] gQUIC server: associate compressed cert with SSL_CTX,
61      instead of keeping them in a separate hash, potentially leading
62      to mismatches.
63    - [BUGFIX] Stream data discard infinite loop: break on FIN.
64    - cmake: add install target via -DCMAKE_INSTALL_PREFIX (PR #171).
65    - Support randomized packet number to begin a connection.
66    - Mini and full IETF connection size optimization.
67    - http_client: specify HTTP priorities based on stream conditions.
68
692020-09-29
70    - 2.21.0
71    - [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.
72    - [API] Let user generate Souce Connection IDs.
73    - [FEATURE] Allow building lsquic as shared library.
74    - [OPTIMIZATION] Receive history: use a single contiguous memory
75      block for everything.
76    - Deprecate QUIC versions ID-27 and ID-30.
77
782020-09-25
79    - 2.20.2
80    - [BUGFIX] Memory leak: free pushed promise when refcnt is zero.
81    - [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets.
82
832020-09-23
84    - 2.20.1
85    - [BUGFIX] Typo in new "validate peer addr by DCID" code.  It is
86      a benign bug (works either way), but better to fix it.
87    - Simplify Stream Priority Iterator (SPI).
88    - Minor documentation updates.
89
902020-09-15
91    - 2.20.0
92    - [FEATURE] QUIC and HTTP/3 Internet Draft 30 support.
93    - [FEATURE] Unreliable Datagram Extension support.
94    - [FEATURE] Adaptive congestion controller.
95    - [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams.
96    - [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO
97      data comes in.
98    - [BUGFIX] Spin bit is now strictly per path; value is reset on
99      DCID change.
100    - [BUGFIX] Check that max value of max_streams_uni and
101      max_streams_bidi TPs is 2^60.
102    - [BUGFIX] Close IETF mini conn immediately if crypto session
103      cannot be initialized.
104    - Deprecate ID-28 (no browser uses it): it's no longer in the
105      default versions list.
106    - New programs duck_server and duck_client that implement the
107      experimental siduck-00 protocol.  They quack!
108    - IETF crypto streams: don't limit ourselves from sending.
109    - Command-line programs: turn off QL loss bits if -G is used, as
110      Wireshark cannot decrypt QUIC packets when this extension is used.
111    - Turn all h3 framing unit tests back on.
112    - Fix malo initialization when compiled in no-pool mode.
113
1142020-09-08
115    - 2.19.10
116    - [FEATURE] Add lsquic_stream_pwritev().  This function allows one to
117      reduce the number of system calls required to read a file from disk
118      by using lsquic_stream_pwritev() together with preadv(2).
119    - [BUGFIX] When stream is reset, it is writeable -- let user collect
120      the error.
121    - [BUGFIX] Calculate correct conn flow control if reading ends early.
122    - [BUGFIX] Remove stream from read and write queues on internal
123      shutdown.  This is a regression introduced in 2.19.7.
124    - [BUGFIX] Swapped arguments in IETF RESET_FRAME generation.
125    - Turn off mini conn history when compiling with Visual Studio; this
126      allows the project to compile on Windows again.
127    - http_client: Add -3 flag to stop reading from streams early; code
128      cleanup.
129    - Don't use -Werror.
130
1312020-09-02
132    - 2.19.8
133    - [FEATURE] Update the timestamp extension to latest version.
134    - [FEATURE] Cope with appearance of ECN blackholes.
135    - [OPTIMIZATION] return packno offset and size when header is generated.
136    - [BUGFIX] ignore old ACK frames in mini conns.
137    - [BUGFIX] Mark initial server path as initialized.
138    - [BUGFIX] Do not merge ACK if ECN counts do not match.
139    - Turn incoming packet number history in mini conn back on.
140    - Record mini conn event history again when compiled in debug mode.
141    - IETF mini conn: log when ACK is queued.
142    - Clean up and refactor code in several places.
143
1442020-08-26
145    - 2.19.7
146    - Handle ECT-CE event: issue a loss event.
147    - Log the fact that we ignore SETTINGS_MAX_HEADER_LIST_SIZE.
148    - Use Max Push ID in GOAWAY frame to cancel promises.
149    - Add support for HTTP/3 CANCEL_PUSH frame.
150    - lsquic_stream_is_pushed: streams without headers are never pushed.
151    - [BUGFIX] Regression in lsquic_stream_shutdown_internal: now it shuts down.
152    - Improve logic whether to generate CONNECTION_CLOSE.
153
1542020-08-20
155    - 2.19.6
156    - Don't process incoming ECN marks if ECN is not enabled.
157    - Schedule ACK when incoming packet is marked with CE.
158
1592020-08-11
160    - 2.19.5
161    - [BUGFIX] Generate frame record when moving an ACK from one buffered
162      packet to another.
163
1642020-08-06
165    - 2.19.4
166    - [BUGFIX] Do not return an oversize MTU probe to connection twice.
167    - [FEATURE] Delayed Acks updated to latest draft.  Still experimental.
168    - Minor code cleanup in IETF full connection.
169
1702020-08-04
171    - 2.19.3
172    - [BUGFIX] Regression in 2.19.1 that breaks Q050
173
1742020-07-30
175    - 2.19.2
176    - [BUGFIX] Do not reduce PLPMTU size by network overhead.
177    - [BUGFIX] Windows build.
178
1792020-07-29
180    - 2.19.1
181    - [FEATURE] DPLPMTUD support.  IETF connections now search for the
182      maximum packet size, improving throughput.
183    - [DEBUG] Record event in stream history when on_close() is called
184      in dtor.
185
1862020-07-22
187    - 2.18.2
188    - [BUGFIX] Send prediction: lone path challenges do not get squeezed out
189    - Fix crash in http_client: now -K and -B can be used simultaneously
190
1912020-07-14
192    - 2.18.1
193    - [FEATURE] Implement the "QUIC bit grease" extension.
194    - [BUGFIX] Selecting CID used for logging on client.
195    - [BUGFIX] Header protection assertion.
196    - [BUGFIX] Server: enable SSL key logging when cert lookup callback
197      is not set.
198    - Remove some dead code.
199
2002020-07-06
201    - 2.18.0
202    - [API] Rename "0-RTT" to "session resumption." In IETF QUIC, "0-RTT"
203      always refers to early data, meaning a request that the server can
204      reply to in the very first return flight.  A more appropriate name
205      for what we support on the client site is "session resumption," which
206      is standard TLS terminology.  Later, when we add support for 0-RTT
207      (early data), we can use the 0-RTT terminology again, this time in
208      proper context.
209    - [BUGFIX] Do not set certificate callback if ea_lookup_cert is NULL.
210    - [BUGFIX] Make connection tickable when it's marked as closed.
211    - [BUGFIX] Fail certificate lookup if SNI is not present in HTTP mode.
212    - Several documentation fixes and improvements.
213    - Minor code cleanup.
214
2152020-06-24
216    - 2.17.2
217    - [BUGFIX] Infinite loop in stream: advance read offset when discarding
218      data.
219    - [OPTIMIZATION] Header protection: only initialize cipher once.
220    - [OPTIMIZATION] Batch header protection application.
221
2222020-06-18
223    - 2.17.1
224    - [FEATURE] QUIC and HTTP/3 Internet Draft 29 support.
225    - [BUGFIX] Check that scheduled packets are also sendable when
226      calculating a connection's "tickable" property.
227    - [BUGFIX] Don't count scheduled packets as in-flight when pacer is
228      checked on tick.
229    - gQUIC: delay calling on_new for pushed stream until headers are
230      available.
231    - Allow nested calls to lsquic_engine_connect().
232
2332020-06-15
234    - 2.16.3
235    - [OPTIMIZATION] Stash up to two reordered packets in IETF mini conn
236      instead of dropping them.
237    - [BUGFIX] Crash: check decrypt context before using it.  This regression
238      was introduced in 2.16.2.
239
2402020-06-12
241    - 2.16.2
242    - [BUGFIX] ID-28: do not use TLS middlebox compatibility mode in
243      ClientHello.  This change requires using a newer version of BoringSSL.
244    - [BUGFIX] Free connections in Advisory Tick Time Queue in engine dtor.
245    - [BUGFIX] IETF QUIC client: narrow migration check to a single path.
246    - [BUGFIX] NULL dereference: set function pointers for alarm for path
247      challenges 2 and 3.
248    - [BUGFIX] HTTP/3 headers may be followed immediately by trailers.
249    - [BUGFIX] Log messages when SCID changes.
250
2512020-06-09
252    - 2.16.1
253    - [FEATURE] Use "no-progress timeout" after which connection is closed.
254    - [BUGFIX] Select new SCID when current SCID is retired.
255    - [BUGFIX] Don't warn about dropped Initial packet sequence gaps during
256      mini/full handoff.
257    - [BUGFIX] Send correct conn error when HTTP/3 frame is truncated.
258    - [BUGFIX] Mini conn: consider amplification when deciding to return
259      TICK_SEND.
260    - [BUGFIX] Don't double-count tag length in amplification logic.
261    - [BUGFIX] Don't squeeze out lone path challenges.
262    - [BUGFIX] Log messages dealing with scheduled packet queue squeezing.
263    - [BUGFIX] don't wipe current path if no path challenge responses
264      come back.
265    - [BUGFIX] When path is reset, don't lose path_id which is used for
266      logging.
267    - Downgrade flow control violations to info log level from warnings.
268    - Fix connection cap extra check, avoid checks in nested calls.
269    - Fix some unit tests when extra checks are enabled.
270    - Use ls-hpack 2.2.1.
271    - Turn off unconditional extra checks for IETF clients.
272    - Extra checks: don't verify sent size of hello packets.  Client
273      changes DCID length and this check will fail.
274
2752020-06-03
276    - 2.16.0
277    - [API] Use lsxpack_header v206.
278    - [FEATURE] Windows supported.
279    - [BUGFIX] Fix uninitialized variable use in client (regression in
280      2.15.0).
281    - Use ls-hpack 2.2.0.
282    - Use ls-qpack 2.2.0.
283    - Sample programs: fix the way maximum number of packets is
284      calculated.
285    - Remove some dead code.
286
2872020-05-27
288    - 2.15.0
289    - [FEATURE] QUIC and HTTP/3 Internet Draft 28 support.
290    - [BUGFIX] Ignore Retry packets after other packets are decrypted
291      successfully.
292    - [BUGFIX] Transport parameter decoding: CID no longer has 4-byte
293      length minimum.
294    - http_client: fix and optimize lsxpack_header allocator.
295    - Drop support for Internet Draft 25.
296
2972020-05-19
298    - 2.14.8
299    - Support Android.
300    - Rerrange tree: move command-line examples into bin/ and unit
301      tests into tests/ from test/unittests/.
302
3032020-05-12
304    - 2.14.7
305    - [BUGFIX] ALPN-to-version mapping: do not skip h3-Q050.
306    - [BUGFIX] Frame reader: skip headers if target stream is closed.
307
3082020-05-06
309    - 2.14.6
310    - [BUGFIX] Fix amplification mitigation in 0-RTT case.
311    - [BUGFIX] IETF mini connection should not tickable if cannot send
312      a packet due to amplification.
313    - [BUGFIX] Fail if active_connection_id_limit TP is smaller than 2.
314    - [BUGFIX] Qlog server certificates for IETF QUIC connections.
315    - [BUGFIX] Uninitialized struct padding usage in tokgen (benign).
316    - [BUGFIX] Incorrect argument to shi_lookup() (benign).
317
3182020-04-29
319    - 2.14.5
320    - [BUGFIX] In coalesced datagram, ignore packets whose CID does not match.
321    - [BUGFIX] Frame reader: skip headers if target stream is not found.
322    - [BUGFIX] Log message in QPACK decoder handler.
323
3242020-04-24
325    - 2.14.4
326    - [BUGFIX] Heed es_rw_once for pushed HTTP/3 streams.
327    - [BUGFIX] IETF client: set correct flags on bidirectional streams.
328    - [BUGFIX] Generate Cancel Stream QPACK instructions for abandoned
329      streams.
330    - [BUGFIX] Do not call header callbacks after stream is closed.
331    - Use ls-qpack 2.1.1
332
3332020-04-15
334    - 2.14.3
335    - [BUGFIX] gQUIC: pass correct stream to hsi_create_header_set() callback.
336    - [BUGFIX] Use ls-hpack 2.1.1
337    - Improve stream code readability.
338    - Use ls-qpack 2.0.5
339
3402020-04-08
341    - 2.14.2
342    - [BUGFIX] Use ls-qpack 2.0.4
343    - [BUGFIX] Honor max packet size on the client and when path changes.
344    - http_server: fix prepare_decode() function.
345
3462020-04-07
347    - 2.14.1
348    - [BUGFIX] Place connections on tickable queue when sending is reenabled.
349    - [BUGFIX] A connection is tickable if it has unsent packets.
350    - [BUGFIX] Heed peer's max_packet_size transport parameter.
351
3522020-03-30
353    - 2.14.0
354    - [API] Use lsxpack_header structure to send HTTP headers.
355    - [OPTIMIZATION] nocopy's readable_bytes() function.
356    - http_server: fix typo in error message
357    - Use ls-hpack 2.1.0.
358    - Use ls-qpack 2.0.0.
359
3602020-03-23
361    - 2.13.3
362    - [BUGFIX] ACK ping-pong: TIMESTAMP frame is not to be acked.
363
3642020-03-13
365    - 2.13.2
366    - [BUGFIX] Use of new lsxpack_header API's hsi_prepare_decode().
367
3682020-03-12
369    - 2.13.1
370    - [API] Use lsxpack_header structure to process incoming headers.
371    - [BUGFIX] Fix assertion when zero-padding Initial packet.
372    - [BUGFIX] Use idle timeout before we learn of peer's value.
373    - Use ls-hpack 2.0.1 -- has lsxpack_header changes.
374    - Use ls-qpack 0.14.0 -- new, common with ls-hpack, XXH seed (not
375      used yet).
376    - Code cleanup: prefix exported functions with "lsquic_".
377
3782020-03-02
379    - 2.12.0
380    - [FEATURE] QUIC timestamps extension.
381    - [API] New: ea_alpn that is used when not in HTTP mode.
382    - [BUGFIX] SNI is mandatory only for HTTP/3 and gQUIC.
383    - [BUGFIX] Benign double-free -- issue #110.
384    - [BUGFIX] Printing of transport parameters.
385
3862020-02-24
387    - 2.11.1
388    - [FEATURE] QUIC and HTTP/3 Internet Draft 27 support.
389    - [FEATURE] Add experimental delayed ACKs extension.
390    - Drop support for Internet Draft 24.
391    - Code cleanup.
392
3932020-02-14
394    - 2.10.6
395    - [BUGFIX] HTTP/3 framing: don't misinterpret rare occurence as error.
396    - [BUGFIX] Send gap warning due to missing poisoned packet.
397    - Stream unit test for scenario in issue #106.
398
3992020-02-13
400    - 2.10.5
401    - [BUGFIX] BBR: call cci_sent() with correct arguments and at correct
402      time.
403    - Refactor transport parameters module.
404    - Minor code cleanup.
405
4062020-02-11
407    - 2.10.4
408    - [BUGFIX] Send HANDSHAKE_DONE only after Finished is received.
409    - [BUGFIX] Don't treat garbage UDP padding as library error; ignore
410      it instead.
411    - [BUGFIX] Fix compilation on FreeBSD (missing header).
412    - Code cleanup: remove unnecessary #includes.
413
4142020-01-31
415    - 2.10.3
416    - [BUGFIX] Cancel path responses and challenges on old path when
417      switching to new path
418    - Logging network path information.
419
4202020-01-30
421    - 2.10.2
422    - [BUGFIX] Do not delay ACKs for Initial and Handshake packets.
423    - [BUGFIX] Send PATH_CHALLENGE if path changed before mini conn
424      promotion.
425    - Logging improvements.
426    - http_client: discard data faster.
427
4282020-01-29
429    - 2.10.1
430    - [BUGFIX] Coalesced packets could get longer than normal packet
431      size.
432    - Add spin bit configuration option es_spin (-o spin=[01]).
433    - Disable spin bit in 1/16 of connections.
434    - Improve logging a bit.
435
4362020-01-28
437    - 2.10.0
438    - [FEATURE] QUIC and HTTP/3 Internet Draft 25 support.
439    - [API] Drop support for ID-23.
440    - [BUGFIX] Set key phase bit on outgoing packets correctly.
441    - Code cleanup.
442
4432020-01-20
444    - 2.9.0
445    - [API] Drop support for Q039.
446    - Improve ACK-queuing logic.  Send an ACK once in a while if
447      peer keeps on sending non-ack-eliciting packets.
448    - Improve Alt-Svc string: Q050 and later are not included in
449      the old-style "quic" string.
450    - Send stateless resets if connection could not be promoted.
451    - Schedule MAX_DATA if needed when DATA_BLOCKED is received.
452    - Use ls-qpack 0.11.2 -- needed for server push optimization.
453    - Code cleanup: handle some error cases, improve logging.
454
4552020-01-16
456    - 2.8.9
457    - [BUGFIX] Use ls-qpack 0.11.1
458    - [OPTIMIZATION] Generate random bytes in batches.
459    - Change loss_bits transport parameter ID to 0x1057 following
460      latest draft.
461    - Randomize period with which PINGs are sent to elicit ACKs.
462    - Some refactoring and code cleanup.
463
4642020-01-14
465    - 2.8.8
466    - [BUGFIX] Invalid read when parsing IETF transport parameters
467      (this was benign).
468    - [OPTIMIZATION] Frame bundling when using buffered packets in
469      IETF QUIC: a) flush QPACK decoder stream and b) include ACKs
470      in opportunistic fashion.
471    - Fix HTTP/3 framing unit test.
472    - Code cleanup.
473
4742020-01-09
475    - 2.8.7
476    - [BUGFIX] Initial packet size check for IETF mini conn applies to
477      UDP payload, not QUIC packet.
478    - Support old and new school loss_bits transport parameter.
479    - Use Q run length of 64 as suggested in the loss bits Draft.
480    - Undo square wave count when packet is delayed.
481    - Code cleanup; minor fixes.
482
4832020-01-06
484    - 2.8.5
485    - [HTTP3] Verify number of bytes in incoming DATA frames against
486      content-length.
487    - [HTTP3] Stop issuing streams credits if peer stops opening QPACK
488      decoder window.  This addresses a potential attack whereby client
489      can cause the server to keep allocating memory.  See Security
490      Considerations in the QPACK draft.
491    - [BUGFIX] Mini conn: don't shorten max packet size for Q050 and later.
492    - [BUGFIX] Init IETF connection flow controller using correct setting.
493    - [BUGFIX] Fix unintended sign extension when removing header protection.
494    - Code cleanup and minor fixes.
495
4962019-12-30
497    - 2.8.1
498    - [FEATURE] Use occasional packet number gaps to detect optimistic
499      ACK attacks.
500    - [BUGFIX] Q050 client: all packet numbers are in the App PNS.
501    - [OPTIMIZATION] Merge multi-range ACK frames, not just single-range
502      ACK frames.
503    - IETF QUIC: use RTT estimate in ack timeout calculation.
504    - IETF handshake: abort conn when unexpected errors occur.
505    - Use PING rather than MAX_DATA frames to elicit ACKs from peer.
506    - Server: enforce 1200 byte Initial minimum packet size.
507    - [CLEANUP] Remove code to disable gQUIC crypto.
508    - [CLEANUP] Remove n_timestamps from ACK info struct.
509    - Optimize driver: reuse previous ancillary message when possible.
510
5112019-12-23
512    - 2.8.0
513    - [FEATURE] Add support for Q050.
514    - [OPTIMIZATION] Reduce mallocs in gQUIC handshake.
515    - [BUGFIX] Disable redo of failed STREAM frame insertion with debug
516      logging.
517
5182019-12-18
519    - 2.7.3
520    - [DEBUG] Further dedup next advisory tick messages when reason is
521      the same.
522    - [BUGFIX] Update size of `a` array in TP struct.  Fixes (benign)
523      GitHub bug #94.
524    - Use Cubic by default again instead of BBR, as it delivers more
525      consistent performance.
526
5272019-12-11
528    - 2.7.2
529    - [BUGFIX] Send controller: update scheduled bytes when DCID length
530      changes (IETF client).
531    - [BUGFIX] Drop alarm check from sanity test.  It no longer works now
532      that we use loss chains.
533    - [PORTABILITY] Fix build on Alpine Linux.
534    - [PORTABILITY] Fix build using XCode.
535    - Client initial DCID length: use RAND_bytes() instead of rand(3).
536    - Add unit tests for connection min heap.
537    - [DEBUG] Log CID in gQUIC handshake module
538    - [DEBUG] Turn on extra checks for IETF client send controller.
539    - [DEBUG] Dedup next advisory tick messages when reason is IDLE timer.
540    - [DEBUG] QPACK decoder handler: log header error code.
541
5422019-12-05
543    - 2.7.1
544    - [BUGFIX] client: don't call ignore_init() in middle of batch send.
545      ignore_init() makes an assumption that the send controller has access
546      to all outgoing packets.  This change wraps a few IETF full connection
547      methods to delay calling ignore_init() until the engine returns all
548      outgoing packets that were batched.
549    - [BUGFIX] set errno to EAGAIN if sendmmsg() can't send all of them.
550      This needs to be done because the value of errno may be lost on
551      some platforms.
552    - [BUGFIX] Typo that set all bits in sm_qflags lead to crashes.
553    - [BUGFIX] Do not cancel header block processing after failure, as
554      QPACK releases the reference in that case.
555    - [CLEANUP] IETF encrypt: replace assert(0) with a warning.
556    - Several small improvements to the test server.
557
5582019-11-27
559    - 2.7.0
560    - [API, FEATURE] Close connection immediately when ea_packets_out()
561      fails with errno != EAGAIN.  The API change is that errno is now
562      examined.  Make sure to set it if using something other than
563      sendmsg() to send packets.
564    - [CLEANUP] Immediate close logic in IETF full conn.
565    - [CLEANUP] Fix bogus warning about uninitialized `pair' variable.
566
5672019-11-22
568    - 2.6.7
569    - [FEATURE] Implement the QL extension (offered by default).
570    - [BUGFIX] Abort when encountering unexpected HTTP/3 frames.
571    - [BUGFIX] Acknowledge (QPACK) HTTP/3 trailers correctly.
572    - [DEBUG] Turn on debug message for next advisory tick.
573
5742019-11-20
575    - 2.6.6
576    - [BUGFIX] Using HTTP/3 to HTTP/1.x converter.
577    - [BUGFIX] Truncate log messages instead of throwing them away.
578
5792019-11-15
580    - 2.6.5
581    - [BUGFIX] High priority buffered packet queue length.
582    - [BUGFIX] Rain time calculation: max_ack_delay is in milliseconds.
583
5842019-11-12
585    - 2.6.3
586    - [BUGFIX] Close DATA frames with empty payload correctly.
587
5882019-11-11
589    - 2.6.2
590    - [BUGFIX] SCID!=ODCID rule applies to Retry packets, not regular
591      packets.
592    - [BUGFIX] Zero-RTT: BoringSSL no longer flips read/write secrets.
593    - [BUGFIX] Truncate ACK frame rather instead of aborting IETF
594      connection.
595    - [BUGFIX] Client: don't send duplicate reset tokens.
596    - [BUGFIX] Remove invalid assertion in H3 framing code.
597    - Silence a warning in send ctl by restructuring switch() statement.
598
5992019-11-08
600    - 2.6.1
601    - [BUGFIX] set retry token on all resubmitted packets.
602    - Event log: log sent packet flags.  In particular, this allows one
603      to see whether token was sent.
604    - Don't migrate client if es_allow_migration is false.
605
6062019-11-07
607    - 2.6.0
608    - [FEATURE] QUIC and HTTP/3 Internet Draft 24 support
609
6102019-11-07
611    - 2.5.2
612    - [BUGFIX] argument order to gQUIC client constructor.  Regression
613      introduced in 2.5.0.
614    - [BUGFIX] split buffered packet error recovery: destroy the correct
615      packet.
616
6172019-11-04
618    - 2.5.1
619    - [BUGFIX] Fix double-free when emptying a packet number space.
620    - [BUGFIX] http_server: fix md5sum handler: handle EOF correctly.
621    - [BUGFIX] Use random values in bits 4 and 5 of the first byte of
622      verneg packets (regression introduced in 2.5.0).
623    - [OPTIMIZATION] Don't compile in expensive attq checks by default.
624    - [OPTIMIZATION] http_server: compile regexes only once.
625
6262019-10-31
627    - 2.5.0
628    - [API] lsquic_engine_connect() can now be passed QUIC version to use.
629    - [OPTIMIZATION] Queue opportunistic ACKs if there is data to be sent.
630    - [BUGFIX] Don't evict streams from priority iterator if there is
631      only one queue.
632    - [OPTIMIZATION, BUGFIX] Several other optimizations and bug fixes.
633    - Use ls-qpack v0.10.7.
634
6352019-10-24
636    - 2.4.10
637    - [BUGFIX] IETF QUIC server: fix uninitialized variable use.
638    - [BUGFIX] make sure TLSv1.3 is not disabled in SSL object.
639    - [BUGFIX] Use issuer name and serial number to cache certs (SKID
640      values are not unique).
641    - [BUGFIX] Always set the idle alarm in IETF connection so that it
642      can time out.
643    - Use ls-qpack v0.10.6, as it silences some warnings.
644
6452019-10-21
646    - 2.4.8
647    - [OPTIMIZATION, BUGFIX] Use ls-qpack v0.10.5.
648
6492019-10-15
650    - 2.4.7
651    - Add echo client and server to the distibution.
652    - Add MD5 client and server to the distibution.
653    - Fix http_client: check command-line arguments better, prevent crash.
654    - Fix IETF conn: can_write_ack() should only care about APP PNS.
655    - Client: delay stream creation until handshake succeds.
656    - Reset HTTP stream whose write end is closed prematurely.
657    - Fix tickable(): mirror behavior of tick() wrt buffered packets.
658    - Log reason why engine is tickable.
659
6602019-10-11
661    - 2.4.6
662    - Minor code cleanup and logging improvements.
663    - Server and client programs: include library version (e.g. 2.4.6)
664      into `server' and `user-agent' headers.
665
6662019-10-08
667    - 2.4.5
668    - [OPTIMIZATION]: flush encoder stream only when necessary.
669    - [BUGFIX] Use ls-qpack v0.10.2 for new API -- and for a bug fix.
670    - [BUGFIX] Typo in IETF conn SETTINGS writer.
671    - Use latest BoringSSL.
672
6732019-10-08
674    - 2.4.4
675    - [API] Add lsquic_alpn2ver() to aid parsing Alt-Svc header.
676    - [BUGFIX] NULL dereference when H3 frame header would be split.
677    - [BUGFIX] Do not close fixed-size H3 frame prematurely.
678    - [BUGFIX] Allow PING frames in IETF mini conn.
679    - [BUGFIX] Mini conns: don't send any packets after receiving
680      CONNECTION_CLOSE.
681    - [BUGFIX] Client migration: reserve slot for DCID from transport params.
682    - [BUGFIX] Allow max_early_data_size=0 -- early_data might not be there.
683    - [BUGFIX] Use an invalid stream number to reset BPT cache (zero is now a
684      valid stream number).
685    - [SPEC] Use FINAL_SIZE_ERROR when FIN mismatch is detected.
686    - [OPTIMIZATION] Closed connection only gets one chance to send packets.
687    - [OPTIMIZATION] Flush headers stream before packetizing stream data.
688    - [OPTIMIZATION] process QPACK encoder STREAM frames immediately.
689    - Update ls-qpack to v0.10.1.
690
6912019-09-30
692    - 2.4.3
693    - Add GQUIC versions to the list of h3 ALPNs for Alt-Svc header.
694      For example, h3-Q043.  Chrome will switch to using this format at
695      some point in the future.
696    - [BUGFIX] Send correct value in max_streams_uni transport param
697    - [SPEC] Abort IETF QUIC connection if max_early_data_size is not set
698      to 0xFFFFFFFF
699
7002019-09-23
701    - 2.4.2
702    - [BUGFIX] H3 framing: fix zero-byte write when space is available
703    - [BUGFIX] Don't send STREAM frame when incoming unidirectgional stream
704      is closed
705    - [BUGFIX] Cancel all pending writes by stream reset by a GOAWAY
706    - [BUGFIX] Fix use-after-free in IETF full conn
707    - [OPTIMIZATION] Wait for session tickets for two seconds and then drop
708      SSL object and crypto streams.
709
7102019-09-18
711    - 2.4.0
712    - [FEATURE] QUIC and HTTP/3 Internet Draft 23 support
713
7142019-09-13
715    - 2.3.1
716    - [BUGFIX] Fix memory leaks
717    - [BUGFIX] Fix unit tests
718
7192019-09-12
720    - 2.3.0
721    - [FEATURE] BBR congestion control is on by default
722    - [BUGFIX] BBR app-limited logic
723    - [BUGFIX] Fix uninitialized warnings in IETF
724    - [BUGFIX] Update ls-qpack to v0.9.14
725    - [CLEANUP] Code cleanup
726
7272019-09-11
728    - 2.2.0
729    - [FEATURE] Server code is included in the library
730    - [FEATURE] IETF QUIC and HTTP/3 Support (ID-22)
731
7322019-05-13
733    - 1.21.2
734    - [OPTIMIZATION] HPACK: use history to improve compression performance
735
7362019-05-06
737    - 1.21.1
738    - [BUGFIX] If FIN or RST not received, don't delay stream destruction.
739    - [OPTIMIZATION] Speed up HPACK encoder by using same hash value to
740      search static and dynamic tables.
741
7422019-04-12
743    - 1.21.0
744    - [FEATURE] Add qlog log module.
745
7462019-04-01
747    - 1.20.0
748    - [FEATURE] Add support for Q046.
749
7502019-03-19
751    - 1.19.6
752    - [BUGFIX] Ensure that Largest Observed does not decrease in ACKs we
753      send.  ACK frames placed in packets in buffered queues (optimization
754      introduced in 1.17.15) can be preceded by an ACK frame generated later.
755      In this case, the older ACK frame should not be sent out, as Chromium-
756      based servers flags decrease in the ACK frame's Largest Observed value
757      as an error.
758
7592019-03-05
760    - 1.19.5
761    - [BUGFIX] Use correct public key from PUBS based on KEXS index.
762    - [BUGFIX] Check flags before dispatching writes, avoiding assert.
763    - [BUGFIX] Set :scheme to "https" (instead of "HTTP").
764
7652019-02-25
766    - 1.19.4
767    - [BUGFIX] Check buffer bounds when looking up version in 0-RTT blob.
768    - [BUGFIX] http_client: don't fetch 0-rtt info if handshake failed.
769    - Log number of pacer calls at DEBUG, rather than NOTICE, level.
770
7712019-02-18
772    - 1.19.3
773    - [BUGFIX] Q044: don't encode packet number in 6 bytes.  Six-byte
774      packet number encoding does not exist in Q044.  This fixes a
775      regression introduced in '[BUGFIX] Buffered packets can contain
776      ACK frames' -- we need to keep QUIC version in mind when selecting
777      the longest possible packet number encoding used for the buffered
778      packet that carries the ACK.
779    - [BUGFIX] Do not increase CWND when timeout occurs.
780    - http_client: support setting handshake timeout on command line.
781      Use -o handshake_to=timeout.
782    - http_client: use -k to connect UDP socket to pick up ICMP errors.
783    - http_client: allow pathless mode, when only handshake is performed
784      without issuing any requests.  This can be done by simply not
785      specifying a -p flag on the command line.
786
7872019-02-11
788    - 1.19.2
789    - [BUGFIX] Begin negotiation with version provided in 0-RTT info.
790    - [BUGFIX] Version checking in zero_rtt deserialize function.
791
7922019-02-04
793    - 1.19.1
794    - [BUGFIX] Fix Windows build.
795
7962019-02-04
797    - 1.19.0
798    - [FEATURE, API Change] 0-RTT support.  Add function to export 0-RTT
799      information; it can be supplied to a subsequent connect() call.
800    - [FEATURE] Add -0 flag to http_client to exercise 0-RTT support.
801    - [BUGFIX] Resuscitate the Windows build.
802    - [BUGFIX] Send HTTP settings (max header list size) if necessary.
803    - [BUGFIX] Buffered packets can contain ACK frames.
804    - [BUGFIX] Make packet writeable once all STREAM frames are elided.
805    - [BUGFIX] Fix potential null dereference when realloc fails.
806    - cmake: simplify build configuration.
807
8082019-01-28
809    - 1.18.0
810    - [API Change] Can specify clock granularity in engine settings.
811    - [BUGFIX] Pacer uses fixed clock granularity.  Since the change on
812      2018-04-09, it is not necessary to try to approximate the next tick
813      time in the pacer: it can use fix clock granularity specified by
814      the user.
815    - [BUGFIX] Do not tick constantly before handshake is done.
816    - [BUGFIX] Do not exit tick prematurely: reuse packet with ACK.  Even
817      if we cannot allocate *more* packets, we could still be able to write
818      to one already allocated.
819    - [BUGFIX] Do not schedule pacer if there are no lost packets.
820
8212019-01-17
822    - 1.17.15
823    - [BUGFIX] http_client: make sure only one read per on_read() callback
824      is performed in the header conversion bypass (-B) mode.
825    - http_client: with -E, assign random priority when stream is created.
826    - [OPTIMIZATION] On immediate write, place an ACK frame into the first
827      buffered packet if an ACK is queued.  This reduces the number of
828      standalone ACK packets.
829    - [OPTIMIZATION] Allow placing more than one STREAM frame from the same
830      stream into an outgoing packet.  This change minimizes the number of
831      buffered packets required to store several small HTTP messages by
832      virtue of allowing more than one STREAM frame from HEADERS stream in
833      the same packet.
834    - [OPTIMIZATION] Flush headers when writing to buffered packets.  This
835      causes the headers to be written to the same buffered packet queue,
836      thereby improving packet utilization, especially for small HTTP
837      messages.
838
8392019-01-16
840    - 1.17.14
841    - [FEATURE] http_client can now collect stats: time to connect, TTFB,
842      time to download, requests per seconds, and bandwidth.  See -t flag.
843    - [BUGFIX] http_client: -B, -K, and -r can be used at the same time.
844    - [BUGFIX] http_client: do not display cert chain before each request.
845      Now this is only done once per connection, if the handshake is
846      successful and -a option is given.
847    - [BUGFIX] Do not wait to dispatch on_close() after reading.  If a
848      stream is scheduled to be closed after on_read() callback returns,
849      close it immediately instead of waiting until the end of the tick.
850      If client creates new request from on_close() event, they will be
851      processed in the same tick instead of waiting for the next one.
852    - [BUGFIX] HEADERS stream is critical: always treat it with highest
853      priority.
854
8552019-01-10
856    - 1.17.12
857    - [FEATURE] http_client can now issue parallel requests in the context
858      of a single connection.  See -w option.
859
8602019-01-03
861    - 1.17.11
862    - Fix strict aliasing warning in optimized compilation.
863
8642018-12-27
865    - 1.17.10
866    - Fix the example program to be able to use parallel connections
867      again.  (See the -n argument.)
868
8692018-12-18
870    - 1.17.9
871    - [BUGFIX] Engine: reduce minimum batch size from 256 to 4
872
8732018-12-10
874    - 1.17.8
875    - [BUGFIX] Fix compilation on FreeBSD and 32-bit Linux
876
8772018-12-03
878    - 1.17.7
879    - [BUGFIX] Do not unset PING alarm before ringing expired alarms.
880      This prevented PING from ever being sent.
881
8822018-11-29
883    - 1.17.6
884    - Add failsafe: resume sending packets after some time
885
886      The change puts a 1-second limit on the amount of time the engine
887      will not send packets after some packets are delayed.  This makes
888      the library robust in case the user does not unblock the engine
889      explicitly using lsquic_engine_send_unsent_packets() call.
890
891    - [BUGFIX] Handle corner cases in send controller when packets are
892      a) delayed or b) dropped during repackaging.
893    - [BUGFIX] Memory leak: destroy buffered packets during controller
894      cleanup.
895
8962018-11-16
897    - 1.17.3
898    - [BUGFIX] Do not send STOP_WAITING frames when using Q044
899
9002018-10-19
901    - 1.17.2
902    - [BUGFIX] Memory leak in test_frame_rw unit test.
903    - [BUGFIX] Parsing packets with short IETF header: do not overwrite
904      flags.  (Only a problem in unit tests -- benign otherwise.)
905
9062018-10-16
907    - 1.17.0
908    - [API Change] Packet out Memory Interface (PMI) update:
909      - Split PMI pool return into pmi_release and pmi_return
910      - PMI callbacks take peer_ctx and is_ipv6 arguments
911    - [BUGFIX] Fix use-after-free when certificate is updated
912    - Silence gcc warning in optimized mode by performing useless
913      initialization
914    - cmake: use the standard variable CMAKE_BUILD_TYPE instead of
915      DEVEL_MODE
916
9172018-10-03
918    - 1.16.0
919    - [API Change] Add lsquic_conn_n_avail_streams()
920    - [BUGFIX] only dispatch crypto stream read events if WANT_READ is on
921
9222018-09-27
923    - 1.15.0
924    - [API Change] Add LSCONN_ST_PEER_GOING_AWAY to the list of conn statuses
925    - [BUGFIX] free uncompressed headers correctly when error occurs
926
9272018-09-12
928    - 1.14.3
929    - [BUGFIX] Do not abort conn on STREAM frame for a reset stream
930    - [BUGFIX] Drop packets that would become empty due to repackaging.
931      Packets on the scheduled queue may be marked for repackaging.
932      Frames such as ACK frame that are never resent are removed from
933      repackaged packets.  We must check that the newly repackaged packet
934      would not be empty.  If it would be, it is destroyed instead and
935      the next packet on the scheduled queue is used.  Note that this
936      change only affects the logic to return the next packet to be sent.
937      Lost packets that are being rescheduled are already processed in
938      this fashion.
939    - Byteswap CID before logging it - this makes it match Chrome CIDs.
940      (Except Q035, which is the last little-endian GQUIC version we
941      support.)
942
9432018-09-06
944    - 1.14.0
945    - [API Change] Disable packet sending if full batch cannot be sent
946      If lsquic_packets_out_f() cannot send the whole batch, disable
947      packet sending until lsquic_engine_send_unsent_packets() is called.
948    - [BUGFIX] Handle case when STREAM frame does not fit.
949    - [BUGFIX] Always allow incoming STREAM frames to overlap.  Peers
950      may send overlapping STREAM frames even if using versions older
951      than Q043.
952    - Custom header set fixes:
953      - set "FIN reached" flag when custom header with FIN flag is
954        claimed;
955      - do not return custom header set for a reset stream.
956
9572018-08-27
958
959    - 1.13.0
960    - [FEATURE, API Change] Add ability to create custom header set
961      objects via callbacks.  This avoids reading and re-parsing
962      headers from the stream.
963
9642018-08-27
965
966    - 1.12.4
967    - Fix memory leak when engine is destroyed
968    - Fix memory leak in http_client
969    - Fix gcc warning in unit tests
970
9712018-08-22
972
973    - 1.12.3
974    - [BUGFIX] Fix duplicate STREAM frame detection
975
9762018-08-20
977
978    - 1.12.2
979    - [BUGFIX] Update count of scheduled bytes when adjusting size of
980      an already-scheduled packet.
981    - Emit info instead of warning messages when stream is used in
982      unexpected ways.
983
9842018-08-17
985
986    - 1.12.0
987    - [FEATURE, API Change] Add support for certificate verification
988
9892018-08-16
990
991    - 1.11.1
992    - [BUGFIX] Fix STOP_WAITING frame processing in the new Q044 code
993
9942018-08-15
995
996    - 1.11.0
997    - [FEATURE] Add support for Q044.
998
9992018-08-09
1000
1001    - 1.10.2
1002    - [BUGFIX] Don't go over limit when creating delayed streams
1003
10042018-07-10
1005
1006    - 1.10.1
1007    - [BUGFIX]  process connections after each batch of packets is read
1008      This avoids a problem of accumulating a very large list of packets
1009      (possible when speeds are high and socket's receive buffer is large)
1010      and processing it all at once.
1011    - If glibc is older than 2.17, link with rt.  This is necessary for
1012      clock_getres(2).
1013    - Add version macros to lsquic.h; remove unnecessary includes.
1014
10152018-06-13
1016
1017    - [BUGFIX] allow multiple parallel connections by default
1018
1019      Use the original method of tracking connections by CIDs by default.
1020      If zero-sized CID support is turned on, connections are tracked by
1021      the address.  A new connection is not created if another connection
1022      is using the same network address
1023
10242018-05-30
1025
1026    - [FEATURE, API CHANGE] Support zero-sized CIDs in received packets
1027
10282018-05-24
1029
1030    - Close connection properly when packet encryption fails
1031
10322018-05-23
1033
1034    - [BUGFIX] Do not produce packet sequence gaps due to delayed packets
1035
10362018-05-21
1037
1038    - [API Change] Add optional callback to call when handshake is done
1039    - [API Change, BUGFIX] After send failure, wait until transport available
1040
10412018-05-18
1042
1043    - [API] Expose useful lsquic_ver2str[] in lsquic.h
1044    - [BUGFIX] Do not produce packet sequence gaps due to STREAM frame elision
1045    - Improve checks of number of incoming streams limit and associated
1046      error reporting.
1047    - [BUGFIX] Command-line option `-6` now works correctly.
1048
10492018-05-16
1050
1051    - [FEATURE] DNS resolution
1052    - [BUGFIX] Frame insertion mis-ID as overlap instead of dup
1053    - http_client: fix priority range generated by -E flag
1054
10552018-05-09
1056
1057    - [FEATURE] Add support for Q043.
1058    - Support for versions Q037, Q038, Q041, and Q042 has been removed.
1059    - Fix typo in debug message.
1060    - Fix code indentation.
1061    - Add /* fallthru */ comment to stop newer gcc from complaining.
1062    - Logger: fix compilation of optimized Windows build.
1063
10642018-05-04
1065
1066    - [FEATURE] Add support for Q042.
1067    - Remove comment: MSPC is obsolete (no code changes)
1068    - Prog: use lsquic_str2ver() when processing -o version flag
1069    - Remove unused CTIM and SRBF transport parameters
1070    - Disable QUIC versions Q037 and Q038 by default
1071    - Fix Windows compilation by including compat header file in
1072      lshpack.c
1073    - Address warnings produced by newer versions of gcc
1074    - Future-proof: turn off -Werror
1075
10762018-05-02
1077
1078    - [BUGFIX] Make lsquic_conn_quic_version() available
1079    - Switch to using ls-hpack 1.1
1080    - [BUGFIX] Do not ignore stream resets after receiving FIN
1081
10822018-04-27
1083
1084    - HPACK: do not allow header block to end with table size update.
1085
10862018-04-25
1087
1088    - [BUGFIX] Do not create gap in sent packnos when squeezing delayed
1089      packets.
1090    - [BUGFIX] sendctl checks for all unacked bytes, not just retx bytes.
1091    - [BUGFIX] connections with blocked scheduled packets are not tickable
1092      for sending.
1093    - [BUGFIX] Conn is tickable if it wants to send a connection-level
1094      frame.
1095
10962018-04-23
1097
1098    - Fix busy loop: tickable must make progress.  When connection is
1099      self-reporting as tickable, it must make progress when ticked.  There
1100      are two issues:
1101        1. If there are buffered packets, the connection is only tickable if
1102           they can be sent out.
1103        2. A connection is tickable if there are streams on the servicing
1104           queue.  When the tick occurs, we must service the stream
1105           independent of whether any packets are sent.
1106    - Fix assertion in pacer which can be incorrect under some
1107      conditions.
1108    - cmake: do not turn on address sanitizer if in Travis.
1109
11102018-04-20
1111
1112    - [BUGFIX] Fix bug in lsquic_engine_connect() exposed by yesterday's
1113      changes.
1114
11152018-04-19
1116
1117    - [BUGFIX] Add connection to Tickable Queue on stream write
1118    - cmake: use MSVC variable instead of trying to detect
1119    - engine: improve connection incref/decref logging
1120    - stream: don't ignore errors that may occur on triggered flush
1121    - connection: remove obsolete method
1122    - engine: indicate connection as tickable if previous call went
1123      over threshold
1124
11252018-04-09
1126
1127    [API Change, OPTIMIZATION] Only process conns that need to be processed
1128
1129    The API is simplified: do not expose the user code to several
1130    queues.  A "connection queue" is now an internal concept.
1131    The user processes connections using the single function
1132    lsquic_engine_process_conns().  When this function is called,
1133    only those connections are processed that need to be processed.
1134    A connection needs to be processed when:
1135
1136        1. New incoming packets have been fed to the connection.
1137        2. User wants to read from a stream that is readable.
1138        3. User wants to write to a stream that is writeable.
1139        4. There are buffered packets that can be sent out.  (This
1140           means that the user wrote to a stream outside of the
1141           lsquic library callback.)
1142        5. A control frame (such as BLOCKED) needs to be sent out.
1143        6. A stream needs to be serviced or delayed stream needs to
1144           be created.
1145        7. An alarm rings.
1146        8. Pacer timer expires.
1147
1148    To achieve this, the library places the connections into two
1149    priority queues (min heaps):
1150
1151        1. Tickable Queue; and
1152        2. Advisory Tick Time queue (ATTQ).
1153
1154    Each time lsquic_engine_process_conns() is called, the Tickable
1155    Queue is emptied.  After the connections have been ticked, they are
1156    queried again: if a connection is not being closed, it is placed
1157    either in the Tickable Queue if it is ready to be ticked again or
1158    it is placed in the Advisory Tick Time Queue.  It is assumed that
1159    a connection always has at least one timer set (the idle alarm).
1160
1161    The connections in the Tickable Queue are arranged in the least
1162    recently ticked order.  This lets connections that have been quiet
1163    longer to get their packets scheduled first.
1164
1165    This change means that the library no longer needs to be ticked
1166    periodically.  The user code can query the library when is the
1167    next tick event and schedule it exactly.  When connections are
1168    processed, only the tickable connections are processed, not *all*
1169    the connections.  When there are no tick events, it means that no
1170    timer event is necessary -- only the file descriptor READ event
1171    is active.
1172
1173    The following are improvements and simplifications that have
1174    been triggered:
1175
1176        - Queue of connections with incoming packets is gone.
1177        - "Pending Read/Write Events" Queue is gone (along with its
1178          history and progress checks).  This queue has become the
1179          Tickable Queue.
1180        - The connection hash no longer needs to track the connection
1181          insertion order.
1182
11832018-04-02
1184
1185    - [FEATURE] Windows support
1186
1187    - Reduce stack use -- outgoing packet batch is now allocated on the heap.
1188
11892018-03-09
1190
1191    - [OPTIMIZATION] Merge series of ACKs if possible
1192
1193      Parsed single-range ACK frames (that is the majority of frames) are
1194      saved in the connection and their processing is deferred until the
1195      connection is ticked.  If several ACKs come in a series between
1196      adjacent ticks, we check whether the latest ACK is a strict superset
1197      of the saved ACK.  If it is, the older ACK is not processed.
1198
1199      If ACK frames can be merged, they are merged and only one of them is
1200      either processed or saved.
1201
1202    - [OPTIMIZATION] Speed up ACK verification by simplifying send history.
1203
1204      Never generate a gap in the sent packet number sequence.  This reduces
1205      the send history to a single number instead of potentially a series of
1206      packet ranges and thereby speeds up ACK verification.
1207
1208      By default, detecting a gap in the send history is not fatal: only a
1209      single warning is generated per connection.  The connection can continue
1210      to operate even if the ACK verification code is not able to detect some
1211      inconsistencies.
1212
1213    - [OPTIMIZATION] Rearrange the lsquic_send_ctl struct
1214
1215      The first part of struct lsquic_send_ctl now consists of members that
1216      are used in lsquic_send_ctl_got_ack() (in the absense of packet loss,
1217      which is the normal case).  To speed up reads and writes, we no longer
1218      try to save space by using 8- and 16-bit integers.  Use regular integer
1219      width for everything.
1220
1221    - [OPTIMIZATION] Cache size of sent packet.
1222
1223    - [OPTIMIZATION] Keep track of the largest ACKed in packet_out
1224
1225      Instead of parsing our own ACK frames when packet has been acked,
1226      use the value saved in the packet_out structure when the ACK frame
1227      was generated.
1228
1229    - [OPTIMIZATION] Take RTT sampling conditional out of ACK loop
1230
1231    - [OPTIMIZATION] ACK processing: only call clock_gettime() if needed
1232
1233    - [OPTIMIZATION] Several code-level optimizations to ACK processing.
1234
1235    - Fix: http_client: fix -I flag; switch assert() to abort()
1236
12372018-02-26
1238    - [API Change] lsquic_engine_connect() returns pointer to the connection
1239      object.
1240    - [API Change] Add lsquic_conn_get_engine() to get engine object from
1241      connection object.
1242    - [API Change] Add lsquic_conn_status() to query connection status.
1243    - [API Change] Add add lsquic_conn_set_ctx().
1244    - [API Change] Add new timestamp format, e.g. 2017-03-21 13:43:46.671345
1245    - [OPTIMIZATION] Process handshake STREAM frames as soon as packet
1246      arrives.
1247    - [OPTIMIZATION] Do not compile expensive send controller sanity check
1248      by default.
1249    - [OPTIMIZATION] Add fast path to gquic_be_gen_reg_pkt_header.
1250    - [OPTIMIZATION] Only make squeeze function call if necessary.
1251    - [OPTIMIZATION] Speed up Q039 ACK frame parsing.
1252    - [OPTIMIZATION] Fit most used elements of packet_out into first 64 bytes.
1253    - [OPTIMIZATION] Keep track of scheduled bytes instead of calculating.
1254    - [OPTIMIZATION] Prefetch next unacked packet when processing ACK.
1255    - [OPTIMIZATION] Leverage fact that ACK ranges and unacked list are.
1256      ordered.
1257    - [OPTIMIZATION] Reduce function pointer use for STREAM frame generation
1258    - Fix: reset incoming streams that arrive after we send GOAWAY.
1259    - Fix: delay client on_new_conn() call until connection is fully set up.
1260    - Fixes to buffered packets logic: splitting, STREAM frame elision.
1261    - Fix: do not dispatch on_write callback if no packets are available.
1262    - Fix WINDOW_UPDATE send and resend logic.
1263    - Fix STREAM frame extension code.
1264    - Fix: Drop unflushed data when stream is reset.
1265    - Switch to tracking CWND using bytes rather than packets.
1266    - Fix TCP friendly adjustment in cubic.
1267    - Fix: do not generate invalid STOP_WAITING frames during high packet
1268      loss.
1269    - Pacer fixes.
1270
12712017-12-18
1272
1273    - Fix: better follow cubic curve after idle period
1274    - Fix: add missing parts to outgoing packet splitting code
1275    - Fix: compilation using gcc 4.8.4
1276
12772017-10-31
1278
1279    - Add APIs.txt -- describes LSQUIC APIs
1280
12812017-10-31
1282
1283    - [API Change] Sendfile-like functionality is gone.  The stream no
1284      longer opens files and deals with file descriptors.  (Among other
1285      things, this makes the code more portable.)  Three writing functions
1286      are provided:
1287
1288        lsquic_stream_write
1289        lsquic_stream_writev
1290        lsquic_stream_writef    (NEW)
1291
1292      lsquic_stream_writef() is given an abstract reader that has function
1293      pointers for size() and read() functions which the user can implement.
1294      This is the most flexible way.  lsquic_stream_write() and
1295      lsquic_stream_writev() are now both implemented as wrappers around
1296      lsquic_stream_writef().
1297
1298    - [OPTIMIZATION] When writing to stream, be it within or without the
1299      on_write() callback, place data directly into packet buffer,
1300      bypassing auxiliary data structures.  This reduces amount of memory
1301      required, for the amount of data that can be written is limited
1302      by the congestion window.
1303
1304      To support writes outside the on_write() callback, we keep N
1305      outgoing packet buffers per connection which can be written to
1306      by any stream.  One half of these are reserved for the highest
1307      priority stream(s), the other half for all other streams.  This way,
1308      low-priority streams cannot write instead of high-priority streams
1309      and, on the other hand, low-priority streams get a chance to send
1310      their packets out.
1311
1312      The algorithm is as follows:
1313
1314      - When user writes to stream outside of the callback:
1315        - If this is the highest priority stream, place it onto the
1316          reserved N/2 queue or fail.
1317            (The actual size of this queue is dynamic -- MAX(N/2, CWND) --
1318             rather than N/2, allowing high-priority streams to write as
1319             much as can be sent.)
1320        - If the stream is not the highest priority, try to place the
1321          data onto the reserved N/2 queue or fail.
1322      - When tick occurs *and* more packets can be scheduled:
1323        - Transfer packets from the high N/2 queue to the scheduled
1324          queue.
1325        - If more scheduling is allowed:
1326          - Call on_write callbacks for highest-priority streams,
1327            placing resulting packets directly onto the scheduled queue.
1328        - If more scheduling is allowed:
1329          - Transfer packets from the low N/2 queue to the scheduled
1330            queue.
1331        - If more scheduling is allowed:
1332          - Call on_write callbacks for non-highest-priority streams,
1333            placing resulting packets directly onto the scheduled queue
1334
1335      The number N is currently 20, but it could be varied based on
1336      resource usage.
1337
1338    - If stream is created due to incoming headers, make headers readable
1339      from on_new.
1340
1341    - Outgoing packets are no longer marked non-writeable to prevent placing
1342      more than one STREAM frame from the same stream into a single packet.
1343      This property is maintained via code flow and an explicit check.
1344      Packets for stream data are allocated using a special function.
1345
1346    - STREAM frame elision is cheaper, as we only perform it if a reset
1347      stream has outgoing packets referencing it.
1348
1349    - lsquic_packet_out_t is smaller, as stream_rec elements are now
1350      inside a union.
1351
13522017-10-12
1353
1354    - Do not send RST_STREAM when stream is closed for reading
1355    - Raise maximum header size from 4K to 64K
1356    - Check header name and value lengths against maximum imposed by HPACK
1357    - Fix NULL dereference in stream flow controller
1358
13592017-10-09
1360
1361    - Hide handshake implementation behind a set of function pointers
1362    - Use monotonically increasing clock
1363    - Make sure that retx delay is not larger than the max of 60 seconds
1364
13652017-09-29
1366
1367    - A few fixes to code and README
1368
13692017-09-28
1370
1371    - Add support for Q041; drop support for Q040
1372
13732017-09-27
1374
1375    - Fix CMakeLists.txt: BoringSSL include and lib was mixed up
1376
13772017-09-26
1378
1379    - Add support for Mac OS
1380    - Add support for Raspberry Pi
1381    - Fix BoringSSL compilation: include <openssl/hmac.h> explicitly
1382
13832017-09-22
1384
1385    - Initial release
1386