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

feat(decision-engine): split large block messages #113

Merged
merged 5 commits into from
Feb 21, 2017

Conversation

dignifiedquire
Copy link
Member

No description provided.

Copy link
Member

@victorb victorb left a comment

Choose a reason for hiding this comment

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

Should have a test case as well, otherwise LGTM

@dignifiedquire
Copy link
Member Author

@victorbjelkholm updated

@@ -35,14 +38,42 @@ class DecisionEngine {
}

_sendBlocks (env, cb) {
// split into messges of max 512 * 1024 bytes
Copy link
Member

Choose a reason for hiding this comment

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

Ah yes, because of https://github.com/ipfs/go-ipfs/blob/master/exchange/bitswap/network/ipfs_impl.go#L186

We have a limit to the maximum message size you can send.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, though that is higher than the multiplex limit you implemented in go. So I'm not sure if you could run into the same issue

@dignifiedquire dignifiedquire merged commit 09d5b2b into master Feb 21, 2017
@dignifiedquire dignifiedquire deleted the feat/split-blocks branch February 21, 2017 16:29
@dignifiedquire dignifiedquire removed the status/in-progress In progress label Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants