title: Why does redis pub read io timeout occur?
body: <p>I am new to use redis.I have encounterd an io-timeout problem.
  Code like this:</p>
  <pre><code>func main()  {
      client := redis.NewClient(&amp;redis.Options{
          Addr:     &quot;localhost:6379&quot;,
          Password: &quot;&quot;, // no password set
          DB:       0,  // use enter code heredefault DB
          WriteTimeout: time.Millisecond * 100,
          ReadTimeout: time.Millisecond * 100,
          PoolSize: 20,
      })
  
      for {
          _, err := client.Publish(&quot;ch&quot;, strings.Repeat(strconv.Itoa(rand.Int()), 10)).Result()
          if err != nil {
              fmt.Println(err)
          }
      }
  }
  </code></pre>
  <p>After several minutes, there will be a timeout problem. Like this:read tcp [::1]:54099-&gt;[::1]:6379: i/o timeout.
  Is this because no sub or a slow sub? Please help me.Thanks!</p>