Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chunk ID and chunk RPC to support concurrent request-model-upload RPCs; bugfixes #389

Merged
merged 4 commits into from
May 23, 2018

Conversation

tribal-tec
Copy link
Contributor

No description provided.

@tribal-tec
Copy link
Contributor Author

retest this please

1 similar comment
@tribal-tec
Copy link
Contributor Author

retest this please

@tribal-tec tribal-tec changed the title Add chunk ID and chunk RPC to support concurrent request-model-upload RPCs Add chunk ID and chunk RPC to support concurrent request-model-upload RPCs; bugfixes May 22, 2018
@tribal-tec tribal-tec requested a review from rdumusc May 22, 2018 13:11
Copy link

@rdumusc rdumusc left a comment

Choose a reason for hiding this comment

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

OK, +1

std::lock_guard<std::mutex> lock(_mutex);
_binaryRequests.emplace(std::make_pair(clientID, param.chunksID), task);
_requests.emplace(task, std::make_pair(clientID, param.chunksID));
_nextChunk = param.chunksID;
Copy link

Choose a reason for hiding this comment

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

_nextChunk -> _nextChunkID ?


return task;
}

void setNextChunk(const size_t id) { _nextChunk = id; }
Copy link

Choose a reason for hiding this comment

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

setNextChunk -> setNextChunkID ?

std::map<std::pair<uintptr_t, size_t>,
std::shared_ptr<AddModelFromBlobTask>>
_binaryRequests;
std::map<TaskPtr, std::pair<uintptr_t, size_t>> _requests;
Copy link

Choose a reason for hiding this comment

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

having a typedef for std::pair<uintptr_t, size_t> would be nice here

maybe try to clarify what is _requests and _binaryRequests

_brayns->preRender();
_wsClient.process(CLIENT_PROCESS_TIMEOUT);
for (size_t i = 0; i < SERVER_PROCESS_RETRIES; ++i)
_brayns->preRender();
Copy link

Choose a reason for hiding this comment

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

Check the above, not exactly retires at the preRender is always executed n times

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

Successfully merging this pull request may close these issues.

None yet

3 participants