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:

  1. Set timeout to some huge value and hope the client never stays connected long enough.
  2. Set timeout to -1 which ‘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)

Most upvoted comments

so absence of timeout is useful.