Fix an RPC stall? How did this ever work? How is it supposed to work?

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4098 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-01-01 22:42:31 +00:00
parent 7cba1b21ad
commit 5342ddb2bd
3 changed files with 11 additions and 3 deletions

View File

@ -45,7 +45,7 @@ static void _tf_ssb_rpc_blobs_get(tf_ssb_connection_t* connection, uint8_t flags
const char* id = JS_ToCString(context, arg);
uint8_t* blob = NULL;
size_t size = 0;
const int k_send_max = 8192;
const int k_send_max = 4096;
if (tf_ssb_db_blob_get(ssb, id, &blob, &size))
{
for (size_t offset = 0; offset < size; offset += k_send_max)