soheilhy/cmux

Matching a no-op tcp connection will blocking for-ever

barryz opened this issue · 2 comments

Once a tcp connection established, but without send any data. Like nc localhost 8080 with no latter
operations.

This may cause the matching process to block for-ever until a min length of data is received and the connection may never receives a stop signal(donec). Issue code line :

cmux/cmux.go

Line 184 in 8a8ea3c

matched := s(muc.Conn, muc.startSniffing())

maybe you can set SetReadTimeout to address you problem