Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
991e4d01
Commit
991e4d01
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Make starting of FT's sender worker pool synchronous
parent
029e5313
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!510
Release
,
!381
Initial CTIDH
,
!378
Add a debug GetRunningProcesses to bindings
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fileTransfer/manager.go
+5
-2
5 additions, 2 deletions
fileTransfer/manager.go
fileTransfer/send.go
+2
-0
2 additions, 0 deletions
fileTransfer/send.go
with
7 additions
and
2 deletions
fileTransfer/manager.go
+
5
−
2
View file @
991e4d01
...
...
@@ -215,14 +215,17 @@ func NewManager(params Params, user FtE2e) (FileTransfer, error) {
// StartProcesses starts the sending threads. Adheres to the xxdk.Service type.
func
(
m
*
manager
)
StartProcesses
()
(
stoppable
.
Stoppable
,
error
)
{
// Construct stoppables
multiStoppable
:=
stoppable
.
NewMulti
(
fileTransfer
Stoppable
)
senderPoolStop
:=
stoppable
.
NewMulti
(
workerPool
Stoppable
)
batchBuilderStop
:=
stoppable
.
NewSingle
(
batchBuilderThreadStoppable
)
// Start sending threads
go
m
.
startSendingWorkerPool
(
multiStoppable
)
m
.
startSendingWorkerPool
(
senderPoolStop
)
go
m
.
batchBuilderThread
(
batchBuilderStop
)
// Create a multi stoppable
multiStoppable
:=
stoppable
.
NewMulti
(
fileTransferStoppable
)
jww
.
DEBUG
.
Printf
(
"Adding sender pool w/ name %s"
,
senderPoolStop
.
Name
())
multiStoppable
.
Add
(
senderPoolStop
)
multiStoppable
.
Add
(
batchBuilderStop
)
return
multiStoppable
,
nil
...
...
This diff is collapsed.
Click to expand it.
fileTransfer/send.go
+
2
−
0
View file @
991e4d01
...
...
@@ -65,6 +65,8 @@ func (m *manager) startSendingWorkerPool(multiStop *stoppable.Multi) {
go
m
.
sendingThread
(
stop
)
multiStop
.
Add
(
stop
)
}
jww
.
DEBUG
.
Printf
(
"startSendingWorkerPool multi after adding all: %v"
,
multiStop
)
}
// sendingThread sends part packets that become available oin the send queue.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment