Yaffle / EventSource

a polyfill for http://www.w3.org/TR/eventsource/
MIT License
2.11k stars 338 forks source link

Disconnects after 61s. #200

Open AustinYQM opened 2 years ago

AustinYQM commented 2 years ago

I am attempting to use the Polyfill as my service now requires an api-key header. I know that I can open a long lasting http2 stream using curl in my terminal. However when using the polyfil the connection gets killed by the server after 61s. The message recieved is: IO: Stream reset by SERVER with error code INTERNAL_ERROR (0x2)

I am wondering what might be the cause of this? Does the polyfill use http2 and if so has it be tested properly on it?

h0jeZvgoxFepBQ2C commented 1 year ago

Did you set a longer timeout in your nginx configuration? timeout is usually 60 seconds

Y0421 commented 10 months ago

I configured the length of 300 seconds in Nginx, and the normal connection was disconnected by 300, but my connection agent was disconnected in 60 seconds. I don’t know why. Can anyone help me answer it?