{"action":"opened","issue":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/4472","repository_url":"https://api.github.com/repos/osmandapp/Osmand","labels_url":"https://api.github.com/repos/osmandapp/Osmand/issues/4472/labels{/name}","comments_url":"https://api.github.com/repos/osmandapp/Osmand/issues/4472/comments","events_url":"https://api.github.com/repos/osmandapp/Osmand/issues/4472/events","html_url":"https://github.com/osmandapp/Osmand/issues/4472","id":260103063,"number":4472,"title":"DoS from Online Tracking","user":{"login":"Self-Perfection","id":3757038,"avatar_url":"https://avatars2.githubusercontent.com/u/3757038?v=4","gravatar_id":"","url":"https://api.github.com/users/Self-Perfection","html_url":"https://github.com/Self-Perfection","followers_url":"https://api.github.com/users/Self-Perfection/followers","following_url":"https://api.github.com/users/Self-Perfection/following{/other_user}","gists_url":"https://api.github.com/users/Self-Perfection/gists{/gist_id}","starred_url":"https://api.github.com/users/Self-Perfection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Self-Perfection/subscriptions","organizations_url":"https://api.github.com/users/Self-Perfection/orgs","repos_url":"https://api.github.com/users/Self-Perfection/repos","events_url":"https://api.github.com/users/Self-Perfection/events{/privacy}","received_events_url":"https://api.github.com/users/Self-Perfection/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-24T17:57:24Z","updated_at":"2017-09-24T17:57:24Z","closed_at":null,"author_association":"NONE","body":"After upgrade from 2.6.x to 2.7.5 Online Tracking feature started to produce an avalanche of requests to my server. I've noticed average request rate 25 req/s when Online Tracking is enabled. And if it does not sound scary here is a graph:\r\n![nginx_requests](https://user-images.githubusercontent.com/3757038/30784870-ee70c59a-a165-11e7-8a8a-3375e5c7018a.png)\r\nEventually this excessive rate of requests depleted free space on server with logs which have broken several services and that's why I've named this bug \"DoS\".\r\n\r\nIt seems that OsmAnd keeps repeating the same GET request until it gets response code 200. That's wrong:\r\n\r\n1. Any response 2xx code indicate successfully processed request. In fact properly implemented server side should reply with code 201 or 202.\r\n2. It does not make sense to repeat same request thousands of times. OsmAnd should wait at least a second before repeating and/or limit number of repeats."}}
{"actor":{"display_login":"Self-Perfection"}}