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

issue when opening and closing many streams #21

Open
whyrusleeping opened this issue Dec 28, 2016 · 0 comments
Open

issue when opening and closing many streams #21

whyrusleeping opened this issue Dec 28, 2016 · 0 comments

Comments

@whyrusleeping
Copy link

A stream muxer stress test i have fails when using muxado, it appears to hang after opening and closing a certain number of streams.

To reproduce:

go get -u github.com/whyrusleeping/go-smux-muxado
cd $GOPATH/src/github.com/whyrusleeping/go-smux-muxado && go test

To make the problem a little more visible, add this print line to jbenet/go-stream-muxer:

diff --git a/test/ttest.go b/test/ttest.go
index d7523b5..29ebb79 100644
--- a/test/ttest.go
+++ b/test/ttest.go
@@ -348,6 +348,7 @@ func SubtestStreamOpenStress(t *testing.T, tr smux.Transport) {
        for i := 0; i < count*5; i++ {
                select {
                case <-recv:
+                       fmt.Println("got stream: ", i)
                case <-limit:
                        t.Fatal("timed out receiving streams")
                }
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

1 participant