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

remove limit to outgoing msgs #384

Closed
jbenet opened this issue Nov 25, 2014 · 11 comments
Closed

remove limit to outgoing msgs #384

jbenet opened this issue Nov 25, 2014 · 11 comments

Comments

@jbenet
Copy link
Member

jbenet commented Nov 25, 2014

currently, if a message is greater than net/conn.MaxMessageSize, it is simply dropped. the network layer should be able to handle chunking (this may just work out of the box, given we're only using stream connections atm.

@whyrusleeping
Copy link
Member

The receiving side needs to know how many bytes to read

@whyrusleeping
Copy link
Member

Actually, now thati think about it, we send the length. One thing we would have to though, is make sure we know exactly where buffers stop being used. Otherwise we have a memory allocation nightmare.

@jbenet
Copy link
Member Author

jbenet commented Nov 25, 2014

We can still use the memory pool, we can just allocate larger buffers when needed. Not sure if the pool does this but we could also free buffers if there is a high water mark


Sent from Mailbox

On Mon, Nov 24, 2014 at 11:10 PM, Jeromy Johnson notifications@github.com
wrote:

Actually, now thati think about it, we send the length. One thing we would have to though, is make sure we know exactly where buffers stop being used. Otherwise we have a memory allocation nightmare.

Reply to this email directly or view it on GitHub:
#384 (comment)

@whyrusleeping
Copy link
Member

The sync.Pool is garbage collector aware, if it contains too many extra buffers, they will be freed during the next GC

@jbenet
Copy link
Member Author

jbenet commented Nov 25, 2014

nice.

@whyrusleeping
Copy link
Member

I vote on bumping up the priority of a msgio refactor.

@jbenet
Copy link
Member Author

jbenet commented Dec 8, 2014

Closed in #406

@jbenet jbenet closed this as completed Dec 8, 2014
@btc
Copy link
Contributor

btc commented Dec 8, 2014

There's still a limit on message size (albeit a large one), yeah?

@jbenet
Copy link
Member Author

jbenet commented Dec 8, 2014

@maybebtc yes, but it's desired. we don't want to be sending massive messages. It signals massive blocks, which we don't want.

that reminds me, @whyrusleeping unixfs needs indirect blocks of arbitrary depth. right now, on massive files, the indirect block becomes huge. (#420)

@btc
Copy link
Contributor

btc commented Dec 8, 2014

@maybebtc yes, but it's desired. we don't want to be sending massive messages. It signals massive blocks, which we don't want.

Are clients made aware of the limit?

@jbenet
Copy link
Member Author

jbenet commented Dec 8, 2014

Are clients made aware of the limit?

nope :/ netchan sounds good at first till you actually build it.

ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this issue Oct 23, 2021
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

No branches or pull requests

3 participants