kaazing / http2-cache.js

2 stars 11 forks source link

Bugs/web socket error #75

Closed hthetiot closed 6 years ago

hthetiot commented 6 years ago

Fix issue when RA disconnect and XMLHttpRequest.configuration.cache._requestInfoRevalidating state was invalid. Added revalidate on Xhr timeout and error, clearRevalidates on transport re-opening and close in case of missed disconnection.

To test:

  1. Start stack
  2. Start polling on test page (https://origin-server.example.com:8080)
  3. Restart server (npm run leave && npm run init && npm run start)

Current

Fail to clean stale-while-revalidate and fetch new response after re-connection.

This PR

Should fix

hthetiot commented 6 years ago

see v0.2.1