We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14d42b9 commit ed875fbCopy full SHA for ed875fb
sse.go
@@ -558,7 +558,7 @@ func (es *EventSource) listenStream(res *http.Response) error {
558
if len(ed.Retry) > 0 {
559
if retry, err := strconv.Atoi(string(ed.Retry)); err == nil {
560
es.lock.Lock()
561
- es.serverSentRetry = time.Second * time.Duration(retry)
+ es.serverSentRetry = time.Millisecond * time.Duration(retry)
562
es.lock.Unlock()
563
} else {
564
es.triggerOnError(err)
0 commit comments