{"action":"closed","issue":{"url":"https://api.github.com/repos/kaazing/http2-cache.js/issues/101","repository_url":"https://api.github.com/repos/kaazing/http2-cache.js","labels_url":"https://api.github.com/repos/kaazing/http2-cache.js/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/kaazing/http2-cache.js/issues/101/comments","events_url":"https://api.github.com/repos/kaazing/http2-cache.js/issues/101/events","html_url":"https://github.com/kaazing/http2-cache.js/issues/101","id":299537177,"number":101,"title":"add Config for removing proxy config on failure and retry xhr requests that were pending to origin instead","user":{"login":"hthetiot","id":8635,"avatar_url":"https://avatars0.githubusercontent.com/u/8635?v=4","gravatar_id":"","url":"https://api.github.com/users/hthetiot","html_url":"https://github.com/hthetiot","followers_url":"https://api.github.com/users/hthetiot/followers","following_url":"https://api.github.com/users/hthetiot/following{/other_user}","gists_url":"https://api.github.com/users/hthetiot/gists{/gist_id}","starred_url":"https://api.github.com/users/hthetiot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hthetiot/subscriptions","organizations_url":"https://api.github.com/users/hthetiot/orgs","repos_url":"https://api.github.com/users/hthetiot/repos","events_url":"https://api.github.com/users/hthetiot/events{/privacy}","received_events_url":"https://api.github.com/users/hthetiot/received_events","type":"User","site_admin":false},"labels":[{"id":625927162,"url":"https://api.github.com/repos/kaazing/http2-cache.js/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/kaazing/http2-cache.js/milestones/3","html_url":"https://github.com/kaazing/http2-cache.js/milestone/3","labels_url":"https://api.github.com/repos/kaazing/http2-cache.js/milestones/3/labels","id":2967830,"number":3,"title":"0.2.x","description":"","creator":{"login":"hthetiot","id":8635,"avatar_url":"https://avatars0.githubusercontent.com/u/8635?v=4","gravatar_id":"","url":"https://api.github.com/users/hthetiot","html_url":"https://github.com/hthetiot","followers_url":"https://api.github.com/users/hthetiot/followers","following_url":"https://api.github.com/users/hthetiot/following{/other_user}","gists_url":"https://api.github.com/users/hthetiot/gists{/gist_id}","starred_url":"https://api.github.com/users/hthetiot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hthetiot/subscriptions","organizations_url":"https://api.github.com/users/hthetiot/orgs","repos_url":"https://api.github.com/users/hthetiot/repos","events_url":"https://api.github.com/users/hthetiot/events{/privacy}","received_events_url":"https://api.github.com/users/hthetiot/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":7,"state":"open","created_at":"2017-12-08T20:07:59Z","updated_at":"2018-03-15T02:16:41Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-02-22T22:48:26Z","updated_at":"2018-03-15T02:16:41Z","closed_at":"2018-03-15T02:16:40Z","author_association":"CONTRIBUTOR","body":"# Overview\r\n\r\nThe goal is to fall-back the pending XHR requests there were waiting for the proxy connection (configuration emit `completed`) to origin server by removing the proxy config on connection failure and add it on reconnection success (transport response `open`).\r\n\r\n\r\n# Example:\r\n\r\n## Current (`reconnectAuto`: true and `reconnectAutoDelay` of 100ms * `perReconnectFailureAttempt` )\r\n```json\r\n   {  \r\n       \"push\": \"optional-path-that-is-opened-for-pushes\",\r\n       \"transport\": \"wss://where-the-underlying-ws-transport-connects:443/\",\r\n       \"reconnectAutoDelay\": 100,\r\n       \"reconnectAuto\": true,\r\n       \"proxy\":[  \r\n          \"http://origin-to-send-via-http2:80/path/\",\r\n          \"http://origin-to-send-via-http2:80/path2/\",\r\n          \"http://other-origin-to-send-via-http2:80\"\r\n       ]\r\n    }\r\n```\r\n\r\n\r\n## New Options `accelerationStrategy `and `maximumReconnectInterval`\r\n\r\nWill pursue reconnection attempt per reconnectAutoDelay interval but trigger `completed` on failure when `true` for pending XHR to procced.\r\n\r\n```json\r\n   {  \r\n       \"push\": \"optional-path-that-is-opened-for-pushes\",\r\n       \"transport\": \"wss://where-the-underlying-ws-transport-connects:443/\",\r\n       \"accelerationStrategy\": \"connected\",\r\n       \"maximumReconnectInterval\": 4000,\r\n       \"reconnect\": true,\r\n       \"proxy\":[  \r\n          \"http://origin-to-send-via-http2:80/path/\",\r\n          \"http://origin-to-send-via-http2:80/path2/\",\r\n          \"http://other-origin-to-send-via-http2:80\"\r\n       ]\r\n    }\r\n```\r\n\r\nEntry points:\r\n- https://github.com/kaazing/http2-cache.js/blob/develop/lib/configuration.js#L186\r\n- https://github.com/kaazing/http2-cache.js/blob/develop/lib/xhr.js#L411"}}
{"actor":{"display_login":"hthetiot"}}