Yaffle/EventSource

Possible connection leak? A new SSE connection is opened on every onerror status=undefined

Open

#144 opened on 2020年2月3日

GitHub で見る
 (10 comments) (1 reaction) (0 assignees)JavaScript (1,873 stars) (320 forks)batch import
help wanted

説明

Hi @Yaffle need your help in figuring this out. I see a pattern where a new connection is opened on every onerror and the status for the on error is status=undefined. The client does not get any data through SSE connection and after few seconds onerror with status=undefined is invoked again and a new connection is made to the backend. All these connections kept open till the browser/session is closed and all the connections are closed together. Could you please help in figuring this out and understand why this is happening and help in fixing it?

コントリビューターガイド