Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

ResourceHandshake stateless #4050

Merged
merged 9 commits into from
Apr 5, 2019
Merged

ResourceHandshake stateless #4050

merged 9 commits into from
Apr 5, 2019

Conversation

jiivan
Copy link
Contributor

@jiivan jiivan commented Mar 27, 2019

Move statefull resource hands shaking out of Session. Implement partial message queue usage along the way.

part of: #2223

@ghost ghost assigned jiivan Mar 27, 2019
@ghost ghost added the in progress label Mar 27, 2019
@jiivan jiivan changed the title [WIP] ResourceHandshake stateless ResourceHandshake stateless Apr 4, 2019
@jiivan jiivan marked this pull request as ready for review April 4, 2019 09:43
golem/model.py Show resolved Hide resolved
golem/network/nodeskeeper.py Outdated Show resolved Hide resolved
logger.debug('send_message(%r, %r)', node_id, msg)
msg_queue.put(node_id, msg)

# Temporary code to immidiately initiate session
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

immidiately -> immediately, perhaps also add a FIXME if this is temporary?

HANDSHAKE_TIMEOUT = 20 # s
NONCE_TASK = 'nonce'

resource_handshakes: dict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a type hint here.

golem/task/taskserver.py Outdated Show resolved Hide resolved
tests/golem/task/test_tasksession.py Outdated Show resolved Hide resolved
golem/network/nodeskeeper.py Show resolved Hide resolved
golem/decorators.py Outdated Show resolved Hide resolved
Copy link
Contributor

@kmazurek kmazurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@codecov
Copy link

codecov bot commented Apr 5, 2019

Codecov Report

Merging #4050 into develop will decrease coverage by 0.08%.
The diff coverage is 82.6%.

@@             Coverage Diff             @@
##           develop    #4050      +/-   ##
===========================================
- Coverage    88.76%   88.67%   -0.09%     
===========================================
  Files          212      214       +2     
  Lines        18480    18598     +118     
===========================================
+ Hits         16403    16491      +88     
- Misses        2077     2107      +30

@jiivan jiivan merged commit 9d5694d into develop Apr 5, 2019
@ghost ghost removed the in progress label Apr 5, 2019
@jiivan jiivan deleted the server_shakes_hands branch April 5, 2019 11:34
@maaktweluit
Copy link
Contributor

maaktweluit commented Apr 18, 2019

This PR caused issue #4106 and was fixed by PRs #4110 and #4124

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants