Skip to content
Snippets Groups Projects
Commit ec70a511 authored by Jono Wenger's avatar Jono Wenger
Browse files

Set send timeout for SendManyCMIX

parent 3e915471
No related branches found
No related tags found
2 merge requests!117Release,!105XX-3617 / faster file transfer
......@@ -66,6 +66,9 @@ const (
// Age when rounds that files were sent from are deleted from the tracker
clearSentRoundsAge = 10 * time.Second
// Duration before sending on a round times out
sendTimeout = 500 * time.Millisecond
)
// sendThread waits on the sendQueue channel for parts to send. Once its
......@@ -245,6 +248,7 @@ func (m *Manager) sendParts(partList []queuedPart,
// Create cMix parameters with round exclusion list
p := params.GetDefaultCMIX()
p.SendTimeout = sendTimeout
p.ExcludedRounds = sentRounds
// Send parts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment