From 8f4359a8853ae3af0b89f672aee366aa23a18c54 Mon Sep 17 00:00:00 2001 From: John Turpish Date: Mon, 23 Sep 2024 23:06:12 -0400 Subject: [PATCH] Clear out cleanups_, in case the the functor is holding ownership of something that needs to die. --- library/src/ipfs_client/ipfs_request.cc | 1 + ...6x5qa5foqvyjjnl5mtk4hq2hbl73csgsqx6ap5ox5u | 278 ++++++++++++++++++ 2 files changed, 279 insertions(+) create mode 100644 test_data/blocks/bafkreibaffbwukjz6x5qa5foqvyjjnl5mtk4hq2hbl73csgsqx6ap5ox5u diff --git a/library/src/ipfs_client/ipfs_request.cc b/library/src/ipfs_client/ipfs_request.cc index 990ae8c0..3fcd7b39 100644 --- a/library/src/ipfs_client/ipfs_request.cc +++ b/library/src/ipfs_client/ipfs_request.cc @@ -37,6 +37,7 @@ void Self::finish(ipfs::Response& r) { for (auto& cleanup : cleanups_) { cleanup(); } + cleanups_.clear(); } void Self::new_path(std::string_view sv) { path_.assign(sv); diff --git a/test_data/blocks/bafkreibaffbwukjz6x5qa5foqvyjjnl5mtk4hq2hbl73csgsqx6ap5ox5u b/test_data/blocks/bafkreibaffbwukjz6x5qa5foqvyjjnl5mtk4hq2hbl73csgsqx6ap5ox5u new file mode 100644 index 00000000..8ba5f33d --- /dev/null +++ b/test_data/blocks/bafkreibaffbwukjz6x5qa5foqvyjjnl5mtk4hq2hbl73csgsqx6ap5ox5u @@ -0,0 +1,278 @@ + + + + + + + Can I Use Planet While Offline? + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + +
+
+
+
 
+
+ + +
+ Can I Use Planet While Offline? +
+ + +
+ +

Yes, you can write and generate a static website while offline and publish it later when you have connectivity.

+

You can also read articles from any Planet you follow while offline, as they are stored in the local repo. For example, if you fetched the latest articles from vitalik.eth, you can read them during a long flight without Wi-Fi.

+
+

When you start Planet in an offline environment, the IPFS status area shows Online (0) indicating that no peers are currently connected.

+online-0 +
+

These features are fully functional offline:

+
    +
  • Write or edit a post
  • +
  • Generate a website
  • +
  • Read retrieved articles from the Planets you are following
  • +
+

These features need connectivity:

+
    +
  • Publish: Write CID to an IPNS and broadcast the update to your IPFS peers
  • +
  • Check for Update: Find new posts, or a new version of the app, from the Internet
  • +
  • Aggregation: Fetch posts from other IPNS, ENS, or RSS addresses
  • +
+ + +
+ + +
+ + + +
+
+ + + +
+
+
+ +