Closed barryz closed 5 years ago
Once a tcp connection established, but without send any data. Like nc localhost 8080 with no latter operations.
nc localhost 8080
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 : https://github.com/soheilhy/cmux/blob/8a8ea3c53959009183d7914522833c1ed8835020/cmux.go#L184
donec
maybe you can set SetReadTimeout to address you problem
SetReadTimeout
yep, I already fixed it. Thanks for your reply.
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 : https://github.com/soheilhy/cmux/blob/8a8ea3c53959009183d7914522833c1ed8835020/cmux.go#L184