Commit Graph

503 Commits

Author SHA1 Message Date
Dmitri Tikhonov 1a0003e3b9 Release 2.27.2
- [BUGFIX] Memory corruption in receive history copy-ranges function.
2021-01-06 17:53:07 -05:00
Dmitri Tikhonov 06b2a2363e Release 2.27.1
- [API] New knob to set outgoing packet batch size.
- Aborted connection now become tickable immediately.
- Abort connection when HTTP/3 frame cannot be opened (can only happen
  when malloc fails).
2021-01-06 09:00:05 -05:00
Dmitri Tikhonov 6511378725 Release 2.27.0
- [API] Remove keylog callbacks.  See issue #188.
- Add a bit more ALPN logging.
2020-12-31 07:58:48 -05:00
Dmitri Tikhonov 292abba1f8 Release 2.26.2
- [BUGFIX] Do not drop incoming data when STOP_SENDING is received.
- [BUGFIX] Receipt of STOP_SENDING should not cause read-reset.
- [BUGFIX] Allow stream writes after receiving RESET.
- [BUGFIX] Typo in stream: ANDing enum with wrong flag.
- [BUGFIX] Reset elision: do not use zero as special stream ID value,
  for zero is a valid stream ID in IETF QUIC.
- [API] Add optional on_conncloseframe_received() callback.
- Use zero error code in RESET stream sent in response to STOP_SENDING.
2020-12-23 09:06:05 -05:00
Dmitri Tikhonov efa7f95dff Removed #define LSQUIC_SUPPORTS_CONNCLOSEFRAME_CALLBACK
See discussion in PR #205
2020-12-18 15:17:20 -05:00
Paul Sheer 123f116488 Support new lsquic_stream_if callback on_conncloseframe_received() to notify application of CONNECTION_CLOSE frame 2020-12-18 14:23:41 -05:00
Dmitri Tikhonov 71eb4000ac Release 2.26.1
- [BUGFIX] Migration corner cases: drop or pad over path challenge
  and response frames when necessary.
- Fix stream unit test.
2020-12-17 14:39:51 -05:00
LiteSpeed Tech 96214405b1
Update badge image to use travis-ci.com 2020-12-17 09:29:39 -05:00
Dmitri Tikhonov fcbdf653b6 Release 2.26.0
- [OPTIMIZATION] Adjust packet reordering threshold when spurious losses
  are detected.
- [API] Pass pointer to local sockaddr to ea_get_ssl_ctx() callback.
2020-12-09 09:11:03 -05:00
Dmitri Tikhonov 7f96c7c7f3 Release 2.25.0
- [API, FEATURE] Add es_delay_onclose option to delay on_close until all
  data is ACKed.  Use new function lsquic_stream_has_unacked_data() to
  learn whether peer acknowledged all data written to stream.
- [API] Add optional on_reset() stream callback to get notifications
  when RESET or STOP_SENDING frames are received.
- [BUGFIX] On STOP_SENDING, make conn tickable is _writeable_, not
  readable.
2020-12-04 11:29:14 -05:00
Dmitri Tikhonov 57fe5a13ac Fix Windows build 2020-11-24 09:09:13 -05:00
Dmitri Tikhonov f38b395a31 Release 2.24.5
- [FEATURE] Improve Delayed ACKs extension and turn it on by default.
- Limit receive history to a finite amount of memory.
2020-11-24 08:51:36 -05:00
Michał Śledź 8e6b1576b4 Add links to tutorial and NetDev presentation 2020-11-24 08:39:28 -05:00
Dmitri Tikhonov 4580fab747 Release 2.24.4
- [BUGFIX] Check whether ECN counts are set in ACK struct before using them.
- [BUGFIX] Calculate TLP timer correctly when only one packet is in flight.
- [BUGFIX] Min RTO delay is 200 milliseconds, not 1 second.
- [BUGFIX] Memory leak in QPACK decoder handler: discard hset when necessary.
- Allow retired and drained CIDs to be reused after a timeout.
2020-11-18 09:05:15 -05:00
Dmitri Tikhonov 2ed07212e5 Release 2.24.3
- [BUGFIX] Get rough RTT estimate on receipt of Handshake packet.
  This prevents BBR on the client from miscalculating pacing rate,
  slowing down sending of ACK packets.
- [BUGFIX] Packets sent during handshake are app-limited.
- [BUGFIX] Bandwidth sampler starts in app-limited mode.
- [BUGFIX] Memory leak: free QPACK handler context in stream dtor.
- Logging improvements.
2020-11-11 07:50:03 -05:00
Dmitri Tikhonov ee4d393028 Release 2.24.2
- [BUGFIX] Allow peer to migrate when its SCID is zero-length.
- [BUGFIX] PADDING size calculation: only one Short packet can be
  coalesced.  (This should have been part of the fix in 2.24.1).
- Abort connect if received NEW_CONNECTION_ID but current DCID is
  zero-length.
- Improve log messages
2020-11-05 11:01:46 -05:00
Dmitri Tikhonov e85d2854d3 Release 2.24.1
- [API] Allow use of ea_get_ssl_ctx() on the client (optional).  PR #186.
- [BUGFIX] Expand datagram with ack-eliciting Initial to 1200 bytes
  after connection promotion.
- [BUGFIX] Discard CRYPTO frames from lower encryption levels after
  connection promotion.
- [BUGFIX] Cancel path response if path could not be initialized.
2020-11-04 10:27:50 -05:00
Dmitri Tikhonov b0dd78b841 Keep ea_get_ssl_ctx() optional for the client 2020-10-29 13:33:26 -04:00
sumasrao 21bcad8707 Support get_ssl_ctx callback for client 2020-10-28 18:26:57 -05:00
Dmitri Tikhonov 821ffbba11 Fix Windows build 2020-10-28 08:58:27 -04:00
Dmitri Tikhonov 4429f8ea1e Release 2.24.0
- [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.  Drop ID-30
  and ID-31 support.
- [BUGFIX] Divide-by-zero in newly enabled conn stats code when no
  packets were sent.
- [BUGFIX] Memory leak in gQUIC client when server hello cannot be
  parsed.
- [BUGFIX] Server Initial packet size calculation.
- Log user-agent and CONN_CLOSE reason when peer reports error.
- Example programs: Specify ALPN for echo and md5 clients and servers
  (issue #184).
- Example programs: Don't add "QUIC_" prefix to lines in keylog file
  (issue #185).
- http_server: Fix fd leak in preadv mode; fix preadv() usage when
  reading from disk.
2020-10-28 08:10:17 -04:00
Dmitri Tikhonov 078f53798c Release 2.23.3
- [BUGFIX] Update packetization threshold when writing to stream
  after packet size is reduced following an RTO.
2020-10-22 15:12:04 -04:00
Dmitri Tikhonov ce96fe8cf5 Remove strndup definition from http_client (not used) 2020-10-21 11:37:44 -04:00
Dmitri Tikhonov 25332c1253 http_server: use lsquic_strndup() on Windows 2020-10-21 10:30:22 -04:00
Dmitri Tikhonov c0b26eab7c Set -DLSQUIC_CONN_STATS=1 for Windows as well 2020-10-21 10:20:19 -04:00
Dmitri Tikhonov a500a209cf Fix Windows build: implement own strndup(3) 2020-10-21 10:08:01 -04:00
Dmitri Tikhonov ef3958b8fb Fix unit tests 2020-10-21 09:31:12 -04:00
Dmitri Tikhonov 758aff32b9 Release 2.23.2
- Add QPACK stats collection and experimentation mode, see the new
  es_qpack_experiment setting.
- Log busy connection stats every second using the new "conn-stats"
  log module.
- Log about skipping only once.
- Update HTTP/3 greased frame type formula.
- Use ls-qpack v2.2.1.
2020-10-21 09:05:26 -04:00
Dmitri Tikhonov 6a6683860a Use ls-qpack v2.2.1 2020-10-21 09:01:41 -04:00
Dmitri Tikhonov f198a02df8 Release 2.23.1
- [BUGFIX] Regression introduced in 2.22.0: use correct number of
  PNSs for IETF mini conn during promotion.
2020-10-13 12:28:54 -04:00
Dmitri Tikhonov a3e1f0d1bb Fix Windows build: initialize local variable 2020-10-13 08:48:47 -04:00
Dmitri Tikhonov 04f8f447b2 Release 2.23.0
- [FEATURE] IETF Client 0-RTT support.
- [BUGFIX] Do not schedule MTU probe on first tick.
- [BUGFIX] Parsing DATAGRAM frame.
- [BUGFIX] If push promise fails, do not invoke hset destructor.
- [BUGFIX] Client: When connections are IDed by port number, check DCID.
  Fixes issue #176.
- Revert the 2.22.1 lsquic_is_valid_hs_packet change.  All that was
  necessary is a change to the way we call it in lsquic_engine.  No
  change to the function itself is required.
2020-10-13 08:20:25 -04:00
Dmitri Tikhonov f3d781aa59 Add FAQ to the docs 2020-10-11 16:53:34 -04:00
Dmitri Tikhonov 00c58df38c Release 2.22.1
- [BUGFIX] Function that checks validity of handshake packets.
2020-10-08 09:28:24 -04:00
Dmitri Tikhonov 464a1af9c4 Fix Windows build 2020-10-07 11:05:18 -04:00
Dmitri Tikhonov e55a45021d Fix BoringSSL version in README.md 2020-10-07 09:45:03 -04:00
Dmitri Tikhonov fbc6cc0413 Release 2.22.0
- [FEATURE] Extensible HTTP Priorities (HTTP/3 only).
- [FEATURE] Add conn context to packet-out memory interface (PR #175).
- [BUGFIX] gQUIC proof generation: allocate buffer big enough for
  signature (issue #173).
- [BUGFIX] Make library thread-safe: drop use of global variables
  (issue #133, issue #167).
- [BUGFIX] Deactivate only *recent* HQ frame, not any HQ frame.
- [BUGFIX] gQUIC server: associate compressed cert with SSL_CTX,
  instead of keeping them in a separate hash, potentially leading
  to mismatches.
- [BUGFIX] Stream data discard infinite loop: break on FIN.
- cmake: add install target via -DCMAKE_INSTALL_PREFIX (PR #171).
- Support randomized packet number to begin a connection.
- Mini and full IETF connection size optimization.
- http_client: specify HTTP priorities based on stream conditions.
2020-10-07 09:41:26 -04:00
Dmitri Tikhonov cb1e8c1022 Update BoringSSL version to b117a3a0b7bd11fe6ebd503ec6b45d6b910b41a1 2020-10-05 10:41:36 -04:00
Victor Stewart fecdd10417
GSO-Friendly Packet Memory (#175) 2020-10-03 01:48:01 -04:00
Dmitri Tikhonov 2f4629f27d Fix several thread safety issues
Fixes bug #128 and bug #167.
2020-10-01 08:53:35 -04:00
Jonas Vautherin 966c52fc78
Add CMake install target (#171) 2020-10-01 08:45:41 -04:00
Dmitri Tikhonov b62ec17fd2 Release 2.21.0
- [FEATURE] QUIC and HTTP/3 Internet Draft 31 support.
- [API] Let user generate Souce Connection IDs.
- [FEATURE] Allow building lsquic as shared library.
- [OPTIMIZATION] Receive history: use a single contiguous memory
  block for everything.
- Deprecate QUIC versions ID-27 and ID-30.
2020-09-29 08:56:43 -04:00
Dmitri Tikhonov 2e1429b465 Look for .so BoringSSL libs if LSQUIC_SHARED_LIB option is on 2020-09-28 11:58:02 -04:00
Aaron France 038a944155
allow for making a shared library (Ref: #137) (#152) 2020-09-28 11:56:05 -04:00
Victor Stewart ece7c94dac
Connection ID Steering (#165) 2020-09-26 14:11:28 -04:00
Dmitri Tikhonov fcd21c67ff Release 2.20.2
- [BUGFIX] Memory leak: free pushed promise when refcnt is zero.
- [BUGFIX] Memory leak in IETF full conn dtor: cleanup closed IDs sets.
2020-09-25 10:16:59 -04:00
Dmitri Tikhonov 30d0674ac2 Update Makefile.am for OLS 2020-09-23 11:23:36 -04:00
Dmitri Tikhonov cd35ff02ed Release 2.20.1
- [BUGFIX] Typo in new "validate peer addr by DCID" code.  It is
  a benign bug (works either way), but better to fix it.
- Simplify Stream Priority Iterator (SPI).
- Minor documentation updates.
2020-09-23 08:18:25 -04:00
Dmitri Tikhonov b1a7c3f944 Release 2.20.0
- [FEATURE] QUIC and HTTP/3 Internet Draft 30 support.
- [FEATURE] Unreliable Datagram Extension support.
- [FEATURE] Adaptive congestion controller.
- [BUGFIX] Do not send MAX_STREAM_DATA frames on crypto streams.
- [BUGFIX] Fail with CRYPTO_BUFFER_EXCEEDED when too much CRYPTO
  data comes in.
- [BUFFIX] Spin bit is now strictly per path; value is reset on
  DCID change.
- [BUGFIX] Check that max value of max_streams_uni and
  max_streams_bidi TPs is 2^60.
- [BUGFIX] Close IETF mini conn immediately if crypto session
  cannot be initialized.
- Deprecate ID-28 (no browser uses it): it's no longer in the
  default versions list.
- New programs duck_server and duck_client that implement the
  experimental siduck-00 protocol.  They quack!
- IETF crypto streams: don't limit ourselves from sending.
- Command-line programs: turn off QL loss bits if -G is used, as
  Wireshark cannot decrypt QUIC packets when this extension is used.
- Turn all h3 framing unit tests back on.
- Fix malo initialization when compiled in no-pool mode.
2020-09-15 16:42:13 -04:00
Dmitri Tikhonov c3c69ba3bb Release 2.19.10 -- Fix Windows and MacOS builds 2020-09-08 14:16:25 -04:00