{"action":"created","issue":{"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/196","repository_url":"https://api.github.com/repos/IdentityModel/oidc-client-js","labels_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/196/comments","events_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/196/events","html_url":"https://github.com/IdentityModel/oidc-client-js/issues/196","id":189671581,"number":196,"title":"Too many calls in case of silent renew on a slow machine","user":{"login":"bhardwajgaurav007","id":8747351,"avatar_url":"https://avatars.githubusercontent.com/u/8747351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhardwajgaurav007","html_url":"https://github.com/bhardwajgaurav007","followers_url":"https://api.github.com/users/bhardwajgaurav007/followers","following_url":"https://api.github.com/users/bhardwajgaurav007/following{/other_user}","gists_url":"https://api.github.com/users/bhardwajgaurav007/gists{/gist_id}","starred_url":"https://api.github.com/users/bhardwajgaurav007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhardwajgaurav007/subscriptions","organizations_url":"https://api.github.com/users/bhardwajgaurav007/orgs","repos_url":"https://api.github.com/users/bhardwajgaurav007/repos","events_url":"https://api.github.com/users/bhardwajgaurav007/events{/privacy}","received_events_url":"https://api.github.com/users/bhardwajgaurav007/received_events","type":"User","site_admin":false},"labels":[{"id":183005711,"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-16T11:15:50Z","updated_at":"2016-11-17T15:22:22Z","closed_at":null,"body":"I am experiencing an issue where in so many calls are being made by oidc client when token is about to expire in case of silent renew. The machine where Idserv. is hosted is bit slow and around 4-5 calls are made in a second. Many times iFrame timeout occurs and then the oidc-client floods identity server with repeated calls. Is there a way to make it configurable of just increase this timeout."},"comment":{"url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/comments/261275329","html_url":"https://github.com/IdentityModel/oidc-client-js/issues/196#issuecomment-261275329","issue_url":"https://api.github.com/repos/IdentityModel/oidc-client-js/issues/196","id":261275329,"user":{"login":"bhardwajgaurav007","id":8747351,"avatar_url":"https://avatars.githubusercontent.com/u/8747351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhardwajgaurav007","html_url":"https://github.com/bhardwajgaurav007","followers_url":"https://api.github.com/users/bhardwajgaurav007/followers","following_url":"https://api.github.com/users/bhardwajgaurav007/following{/other_user}","gists_url":"https://api.github.com/users/bhardwajgaurav007/gists{/gist_id}","starred_url":"https://api.github.com/users/bhardwajgaurav007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhardwajgaurav007/subscriptions","organizations_url":"https://api.github.com/users/bhardwajgaurav007/orgs","repos_url":"https://api.github.com/users/bhardwajgaurav007/repos","events_url":"https://api.github.com/users/bhardwajgaurav007/events{/privacy}","received_events_url":"https://api.github.com/users/bhardwajgaurav007/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T15:22:22Z","updated_at":"2016-11-17T15:22:22Z","body":"May be I am not able to communicate the problem clearly.\r\nLogically it should make just one call to get the new access token and in case that request fails(or timeout) then try to make a fresh request to identity server. The access token expiration time, be it 1 hour or 5 minutes, shouldn't matter as it will still make a call 1 minute prior to the expiry time. Now the problem is that it make too many calls to fetch the token( it happens at 4th, 9th, 14th… minute in my case as expiry time is 5 minutes). The multiple calls are within a span of few hundred milliseconds i.e. 3-4 times in a second. Sometimes there is just one call. What I suspect is that if there is some delay in getting back the new access token, then oidc client sends a new request. In chrome developer -> network tab I see that the first request is still pending when oidc client makes a new request.\r\n"}}
{"actor":{"display_login":"bhardwajgaurav007"}}