Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
Jeffrey_Wigger_Master_Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
SaCS
Semester-Projects
spring22
Jeffrey_Wigger_Master_Project
Commits
f103cae7
Commit
f103cae7
authored
2 years ago
by
Jeffrey Wigger
Browse files
Options
Downloads
Patches
Plain Diff
neighbor fixes 2
parent
39f35073
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
eval/run_xtimes_reddit_rws.sh
+1
-1
1 addition, 1 deletion
eval/run_xtimes_reddit_rws.sh
src/decentralizepy/communication/TCPRandomWalkRouting.py
+13
-13
13 additions, 13 deletions
src/decentralizepy/communication/TCPRandomWalkRouting.py
with
14 additions
and
14 deletions
eval/run_xtimes_reddit_rws.sh
+
1
−
1
View file @
f103cae7
...
...
@@ -44,7 +44,7 @@ procs_per_machine=16
machines
=
6
global_epochs
=
160
eval_file
=
testing.py
log_level
=
INFO
log_level
=
DEBUG
ip_machines
=
$nfs_home
/configs/
$machine_file
# ip_addr_6Machines.json
...
...
This diff is collapsed.
Click to expand it.
src/decentralizepy/communication/TCPRandomWalkRouting.py
+
13
−
13
View file @
f103cae7
...
...
@@ -413,20 +413,20 @@ class TCPRandomWalkRoutingInternal(TCPRandomWalkBase):
src
,
data
=
self
.
decrypt
(
sender
,
recv
)
if
type
(
data
)
==
tuple
and
data
[
0
]
==
HELLO
:
logging
.
debug
(
"
Received {} from {}
"
.
format
(
HELLO
,
src
))
if
data
[
1
]
==
"
fw at neighbor
"
:
# TODO: this is wrong
# logging.critical(
# "{} wants to connect when already connected!".format(HELLO, src)
# )
# raise RuntimeError(
# "{} wants to connect when already connected!".format(HELLO, src)
# )
# can happen if neighbor is
print
(
"
reconnect request from neighbor
"
)
logging
.
info
(
"
reconnect request from neighbor
"
)
return
if
src
in
self
.
current_neighbors
:
if
data
[
1
]
==
"
fw at neighbor
"
:
# TODO: this is wrong
# logging.critical(
# "{} wants to connect when already connected!".format(HELLO, src)
# )
# raise RuntimeError(
# "{} wants to connect when already connected!".format(HELLO, src)
# )
# can happen if neighbor is
print
(
"
reconnect request from neighbor
"
)
logging
.
info
(
"
reconnect request from neighbor
"
)
return
else
:
logging
.
info
(
"
fw arrived at a neighbour
"
)
logging
.
info
(
"
fw arrived at a neighbour
"
)
print
(
"
fw arrived at a neighbour
"
)
else
:
logging
.
debug
(
"
Received {} from {}
"
.
format
(
data
,
src
))
self
.
add_neighbors
(
src
,
data
[
1
])
...
...
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