This repository has been archived by the owner on Feb 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
go-libp2p-spdy has problems - Can not send objects to go, if they are larger than 64k #48
Labels
Comments
The diff of the logs for everyone interested (left fails, right suceeds), where the left side sends 64k data and right side 62k |
After the suggestions from @whyrusleeping I tried using multiplex. With a custom go ipfs build to enable it and updated libp2p-multiplex I got made some progress The following sizes in bytes for a single file I was able to transfer from
For the transfer from js -> go see the comments for failure starting const sizes = [
1024,
1024 * 62,
// starts failing with spdy, errors as described above
1024 * 64,
1024 * 512,
1024 * 768,
1024 * 1023,
// starts failing with multiplex, tcp disconnect, no error shown anywhere
1024 * 1024,
1024 * 1024 * 4,
1024 * 1024 * 8
] |
15 tasks
50 tasks
Note: issue is in the go implementation |
daviddias
changed the title
Can not send objects to go, if they are larger than 64k
go-libp2p-spdy has problems - Can not send objects to go, if they are larger than 64k
Feb 5, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've been tracking this issue for some time now, and it looks like this is due to spdystream (go implementation of spdy being used) not support flow control.
But lets start from the beginning.
63k
, but starts suddenly failing at anything larger.64k
, which spdy-stream (js impl) follows. But with larger buffers it starts using the flow control features of spdy.The text was updated successfully, but these errors were encountered: