diff --git a/src/windows/service/exe/WslCoreInstance.cpp b/src/windows/service/exe/WslCoreInstance.cpp index 844f536cc..695779093 100644 --- a/src/windows/service/exe/WslCoreInstance.cpp +++ b/src/windows/service/exe/WslCoreInstance.cpp @@ -225,7 +225,7 @@ void WslCoreInstance::CreateLxProcess( ULONG port; { auto sessionLock = sessionLeader->Lock(); - port = sessionLeader->GetChannel().Transaction(messageSpan).Result; + port = sessionLeader->GetChannel().Transaction(messageSpan, nullptr, m_socketTimeout).Result; } // Connect to the port specified by the session leader. @@ -354,7 +354,7 @@ void WslCoreInstance::UpdateTimezone() wsl::windows::common::helpers::GenerateTimezoneUpdateMessage(wsl::windows::common::helpers::GetLinuxTimezone(m_userToken.get())); auto lock = m_initChannel->Lock(); - auto transaction = m_initChannel->GetChannel().StartTransaction(); + auto transaction = m_initChannel->GetChannel().StartTransaction(m_socketTimeout); transaction.Send(gsl::make_span(message)); } @@ -401,7 +401,7 @@ void WslCoreInstance::Initialize() auto config = wsl::windows::common::helpers::GenerateConfigurationMessage( m_configuration.Name, fixedDrives, m_defaultUid, timezone, {}, m_featureFlags, drvfsMount); - auto transaction = m_initChannel->GetChannel().StartTransaction(); + auto transaction = m_initChannel->GetChannel().StartTransaction(m_socketTimeout); transaction.Send(gsl::span(config)); // Init replies with information about the distribution.