ssb: Results of staring at unexpected shs disconnections: wire up tunnel.endpoints and blobs.createWants more correctly/thoroughly. And add slightly more context when deliberately disconnected from the remote side.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 24m11s

This commit is contained in:
2025-02-04 21:32:16 -05:00
parent b4049eaeaa
commit dddec489b9
2 changed files with 9 additions and 2 deletions

View File

@ -1712,7 +1712,11 @@ static void _tf_ssb_connection_rpc_recv(tf_ssb_connection_t* connection, uint8_t
bool close_connection = false;
if (size == 0)
{
tf_ssb_connection_close(connection, "rpc recv zero");
char buffer[256];
const char* request_name = "<unknown>";
_tf_ssb_connection_get_request_callback(connection, -request_number, NULL, NULL, &request_name);
snprintf(buffer, sizeof(buffer), "rpc recv zero (req=%d, name=%s)", request_number, request_name);
tf_ssb_connection_close(connection, buffer);
return;
}
else if (flags & k_ssb_rpc_flag_json)