From aa0b0d3cbfc6c4561591df856396703f7177292e Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Sat, 20 Apr 2024 13:22:05 +0200 Subject: import oplog improvements (#54) * report down/up transfer speed during progress * add disk buffering in http client * offload block decoding and chunk writing form network worker pool threads add block hash verification for blocks recevied at oplog import * separate download-latch from write-latch to get more accurate download speed * check headers when downloading with http client to go directly to file writing for large payloads * we must clear write callback even if we only provide it as an argument to the Download() call * make timeout optional in AddSponsorProcess * check return codes when creating windows threadpool --- src/zenserver/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/zenserver/main.cpp') diff --git a/src/zenserver/main.cpp b/src/zenserver/main.cpp index 8715f5447..b96118484 100644 --- a/src/zenserver/main.cpp +++ b/src/zenserver/main.cpp @@ -123,7 +123,7 @@ ZenEntryPoint::Run() Entry->Pid.load(), m_ServerOptions.OwnerPid); - if (Entry->AddSponsorProcess(m_ServerOptions.OwnerPid)) + if (Entry->AddSponsorProcess(m_ServerOptions.OwnerPid, 2000)) { std::exit(0); } @@ -193,7 +193,8 @@ ZenEntryPoint::Run() if (m_ServerOptions.OwnerPid) { - Entry->AddSponsorProcess(m_ServerOptions.OwnerPid); + // We are adding a sponsor process to our own entry, can't wait for pick since the code is not run until later + Entry->AddSponsorProcess(m_ServerOptions.OwnerPid, 0); } ZenServer Server; -- cgit v1.2.3