@@ -106,7 +106,7 @@ namespace llarp::session
106106 }};
107107
108108 auto stream_opened = [this ](quic::Stream& stream) {
109- /*
109+ # if 0
110110 stream.set_stream_data_cb([this, prev_byte = std::optional<std::byte>{std::nullopt}](
111111 quic::Stream& stream, std::span<const std::byte> data) mutable {
112112 uint16_t dest_port{0};
@@ -163,7 +163,7 @@ namespace llarp::session
163163 50'000,
164164 [this, tcp_conn](auto&) { tcp_conn->resume_reading(); });
165165 });
166- */
166+ # endif
167167 return 0 ;
168168 };
169169
@@ -817,10 +817,7 @@ namespace llarp::session
817817 }
818818 }
819819
820- void Session::recv_close ()
821- {
822- _parent.close_session (_inbound_tag, false );
823- }
820+ void Session::recv_close () { _parent.close_session (_inbound_tag, false ); }
824821
825822 void OutboundRelaySession::recv_close ()
826823 {
@@ -1185,7 +1182,10 @@ namespace llarp::session
11851182 _remote.router_id (), [this , alive = canary ()](std::optional<ClientContact> cc) mutable {
11861183 if (!alive.lock ())
11871184 {
1188- log::debug (logcat, " OutboundClientSession::refresh_intros lookup_client_intro callback returning early; session-alive canary is dead" );
1185+ log::debug (
1186+ logcat,
1187+ " OutboundClientSession::refresh_intros lookup_client_intro callback returning early; "
1188+ " session-alive canary is dead" );
11891189 return ;
11901190 }
11911191 updating_intros = false ;
@@ -1205,7 +1205,7 @@ namespace llarp::session
12051205 {
12061206 log::debug (logcat, " Update session {} intros from client contact: {}" , *this , cc);
12071207 last_cc_update = llarp::time_now_ms ();
1208- last_inbound_activity = last_cc_update; // so we don't just fetch again right away
1208+ last_inbound_activity = last_cc_update; // so we don't just fetch again right away
12091209 auto intros = cc.intros ();
12101210 _intros.assign (intros.begin (), intros.end ());
12111211 log::trace (logcat, " New client intros: {}" , fmt::join (_intros, " , " ));
@@ -1396,15 +1396,15 @@ namespace llarp::session
13961396 return ;
13971397 }
13981398 auto & m = maybe_path_switch_msg->first ;
1399- m.resize (m.size () - (sizeof (session_tag) + HopID::SIZE)); // these go on outer message here
1399+ m.resize (m.size () - (sizeof (session_tag) + HopID::SIZE)); // these go on outer message here
14001400
14011401 oxenc::bt_list_producer btlp;
14021402 btlp.append (std::move ((*maybe_path_switch_msg).first ));
14031403 btlp.append (std::move (session_init_msg));
14041404 auto list_span = btlp.span <std::byte>();
14051405 std::vector<std::byte> payload{list_span.begin (), list_span.end ()};
14061406 auto old_size = payload.size ();
1407- payload.resize (payload.size () + sizeof (_outbound_tag) + HopID::SIZE); // see make_session_data_message
1407+ payload.resize (payload.size () + sizeof (_outbound_tag) + HopID::SIZE); // see make_session_data_message
14081408 auto [payload_span, tag_span, pivot_span] = split_span (payload, old_size, sizeof (_outbound_tag));
14091409 oxenc::write_host_as_big (_outbound_tag, tag_span.data ());
14101410 std::memcpy (pivot_span.data (), _remote_pivot_txid.data (), _remote_pivot_txid.size ());
@@ -1572,13 +1572,14 @@ namespace llarp::session
15721572 " Received session accept message for established session, likely a path switch failed because the "
15731573 " remote restarted, so it accepted our backup session init." );
15741574 }
1575- _is_established = false ; // become unestablished if this parsing fails to trigger a new session init
1575+ _is_established = false ; // become unestablished if this parsing fails to trigger a new session init
15761576 oxenc::bt_dict_consumer btdc{params};
15771577 _outbound_tag = btdc.require <session_tag>(" t" sv);
15781578
15791579 log::debug (logcat, " Remote provided session tag: {}" , _outbound_tag);
15801580
1581- log::trace (logcat, " Outbound session to {} successfully {}established." , remote (), was_established ? " re-" sv : " " sv);
1581+ log::trace (
1582+ logcat, " Outbound session to {} successfully {}established." , remote (), was_established ? " re-" sv : " " sv);
15821583 _is_established = true ;
15831584
15841585 if (pre_establish_data_queue)
0 commit comments