{"action":"opened","issue":{"url":"https://api.github.com/repos/godarklight/DarkMultiPlayer/issues/319","labels_url":"https://api.github.com/repos/godarklight/DarkMultiPlayer/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/godarklight/DarkMultiPlayer/issues/319/comments","events_url":"https://api.github.com/repos/godarklight/DarkMultiPlayer/issues/319/events","html_url":"https://github.com/godarklight/DarkMultiPlayer/issues/319","id":72811094,"number":319,"title":"Client (and possibly server) initial timeout and heartbeat values hardcoded","user":{"login":"Defavlt","id":702010,"avatar_url":"https://avatars.githubusercontent.com/u/702010?v=3","gravatar_id":"","url":"https://api.github.com/users/Defavlt","html_url":"https://github.com/Defavlt","followers_url":"https://api.github.com/users/Defavlt/followers","following_url":"https://api.github.com/users/Defavlt/following{/other_user}","gists_url":"https://api.github.com/users/Defavlt/gists{/gist_id}","starred_url":"https://api.github.com/users/Defavlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Defavlt/subscriptions","organizations_url":"https://api.github.com/users/Defavlt/orgs","repos_url":"https://api.github.com/users/Defavlt/repos","events_url":"https://api.github.com/users/Defavlt/events{/privacy}","received_events_url":"https://api.github.com/users/Defavlt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-03T14:13:50Z","updated_at":"2015-05-03T14:13:50Z","closed_at":null,"body":"The heartbeat and timeout values for the client is hardcoded, as seen here:\r\n\r\nhttps://github.com/godarklight/DarkMultiPlayer/blob/master/Common/Common.cs#L13\r\n```C#\r\n    public class Common\r\n    {\r\n        //Timeouts in milliseconds\r\n        public const long HEART_BEAT_INTERVAL = 5000;\r\n        public const long INITIAL_CONNECTION_TIMEOUT = 5000;\r\n        public const long CONNECTION_TIMEOUT = 20000;\r\n```\r\n\r\nI'm not familiar with DMP's codebase, so I'm not really sure whether there's a system for loading values from a file or not but if there is, could someone point me in the right direction so I can make a patch?"}}