[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-scheme] 14/16: cadet/client: Handle 'reconnect!!'.
From: |
gnunet |
Subject: |
[gnunet-scheme] 14/16: cadet/client: Handle 'reconnect!!'. |
Date: |
Wed, 27 Jul 2022 00:21:24 +0200 |
This is an automated email from the git hooks/post-receive script.
maxime-devos pushed a commit to branch master
in repository gnunet-scheme.
commit 05f59de615be4b028e523d69c7f18099643827c8
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sun Jul 24 12:02:54 2022 +0200
cadet/client: Handle 'reconnect!!'.
* gnu/gnunet/cadet/client.scm (reconnect)[control*]{reconnect!}:
New case.
* tests/cadet.scm ("(CADET) reconnects"): Unskip now passing test.
---
gnu/gnunet/cadet/client.scm | 4 ++++
tests/cadet.scm | 1 -
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/gnunet/cadet/client.scm b/gnu/gnunet/cadet/client.scm
index 9b95aab..f5c9df0 100644
--- a/gnu/gnunet/cadet/client.scm
+++ b/gnu/gnunet/cadet/client.scm
@@ -162,6 +162,10 @@
(close-queue! mq)
;; And the fibers of the <server> object are now done!
(values))
+ (('reconnect!)
+ ;; Restart the loop with a new message queue.
+ ;; TODO: deduplicate with (gnu gnunet dht client)
+ (reconnect config terminal-condition control-channel connected
disconnected spawn lost-and-found))
(('open-channel! channel)
(let* ((channel-number next-free-channel-number)
;; TODO: handle overflow, and respect bounds
diff --git a/tests/cadet.scm b/tests/cadet.scm
index bf26514..046f52b 100644
--- a/tests/cadet.scm
+++ b/tests/cadet.scm
@@ -43,7 +43,6 @@
(test-assert "(CADET) notify disconnected after end-of-file, after 'connected'"
(disconnect-after-eof-after-connected "cadet" connect))
-(test-skip 1) ; TODO: handle resend-old-operations!
(test-assert "(CADET) reconnects"
(reconnects "cadet" connect))
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet-scheme] 02/16: Revert "Eliminate guix.scm.", (continued)
- [gnunet-scheme] 02/16: Revert "Eliminate guix.scm.", gnunet, 2022/07/26
- [gnunet-scheme] 05/16: network-size: Standardise test order., gnunet, 2022/07/26
- [gnunet-scheme] 10/16: nse/client: When the object is lost, stop the fibers., gnunet, 2022/07/26
- [gnunet-scheme] 01/16: .gitignore: Ignore more., gnunet, 2022/07/26
- [gnunet-scheme] 12/16: tests/cadet: Enable "garbage collectable" test., gnunet, 2022/07/26
- [gnunet-scheme] 08/16: nse/client: Make the <server> a <losable>., gnunet, 2022/07/26
- [gnunet-scheme] 07/16: tests/network-size: Test garbage collection of NSE server objects., gnunet, 2022/07/26
- [gnunet-scheme] 09/16: tests/network-size: Correct connect -> nse:connect., gnunet, 2022/07/26
- [gnunet-scheme] 11/16: doc/network-size-estimation: Document that disconnection happens automatically., gnunet, 2022/07/26
- [gnunet-scheme] 16/16: dht/client: Move some code into (gnu gnunet server)., gnunet, 2022/07/26
- [gnunet-scheme] 14/16: cadet/client: Handle 'reconnect!!'.,
gnunet <=
- [gnunet-scheme] 13/16: cadet/client: Handle 'resend-old-operations!'., gnunet, 2022/07/26
- [gnunet-scheme] 15/16: determine-reported-errors: Extract from the DHT tests., gnunet, 2022/07/26
- [gnunet-scheme] 04/16: Merge remote-tracking branch 'g2/master', gnunet, 2022/07/26