go-micro: Disable timeout on RPC stream connection
For a stream RPC connection I’d like to get rid of timeout, I see/found two solutions:
- Set timeout to some huge value and hope the client never stays connected long enough.
- Set timeout to
-1which ‘somehow’ seems to work. (Actually strconv.ParseUint() chokes on it and context timeout is not set (and no error is issued…))
Both options feel hacky to me… Is there a better/recommended solution instead?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 17 (16 by maintainers)
so absence of timeout is useful.