gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 24/32: transport (quic): remove gen_streamid


From: gnunet
Subject: [gnunet] 24/32: transport (quic): remove gen_streamid
Date: Tue, 18 Jul 2023 17:16:13 +0200

This is an automated email from the git hooks/post-receive script.

marshall pushed a commit to branch master
in repository gnunet.

commit 7c4b88b1949f5e7355714cbf518b9019e2f107f6
Author: marshall <stmr@umich.edu>
AuthorDate: Wed Jun 28 10:05:11 2023 -0400

    transport (quic): remove gen_streamid
---
 src/transport/gnunet-communicator-quic.c | 28 ++--------------------------
 1 file changed, 2 insertions(+), 26 deletions(-)

diff --git a/src/transport/gnunet-communicator-quic.c 
b/src/transport/gnunet-communicator-quic.c
index 71aee3826..0a716302f 100644
--- a/src/transport/gnunet-communicator-quic.c
+++ b/src/transport/gnunet-communicator-quic.c
@@ -79,31 +79,6 @@ struct QUIC_header
   size_t token_len;
 };
 
-/**
- * @param stream_type ...
- * Generate a unique stream ID with indicated stream type
- * quiche library has QUICHE_MAX_CONN_ID_LEN = 20?
-*/
-static uint64_t
-gen_streamid ()
-{
-  uint64_t sid;
-  // sid = GNUNET_CRYPTO_random_u64(GNUNET_CRYPTO_QUALITY_STRONG, 
STREAM_ID_MAX);
-  /**
-   * Ensure each peer does NOT reuse one of their own stream ID
-  */
-
-  /**
-   * Modify LSB to represent stream type:
-   * 0x00: client-initiated, bidirectional
-   * 0x01: server-initiated, bidirectional
-   * 0x02: client-initiated, unidirectional
-   * 0x03: server-initiated, unidirectional
-  */
-  return sid;
-}
-
-
 /**
  * Given a quiche connection and buffer, recv data from streams and store into 
buffer
  * ASSUMES: connection is established to peer
@@ -262,7 +237,7 @@ flush_egress (struct quic_conn *conn)
 
     sent = GNUNET_NETWORK_socket_sendto (udp_sock, out, written,
                                          (struct sockaddr *) &send_info.to,
-                                         &send_info.to_len);
+                                         send_info.to_len);
     if (sent != written)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -287,6 +262,7 @@ do_shutdown (void *cls)
               "do_shutdown\n");
 
   GNUNET_CONTAINER_multihashmap_destroy (conn_map);
+  quiche_config_free (config);
 
   if (NULL != read_task)
   {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]