{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenSIPS/opensips/issues/472","labels_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/472/comments","events_url":"https://api.github.com/repos/OpenSIPS/opensips/issues/472/events","html_url":"https://github.com/OpenSIPS/opensips/issues/472","id":69619562,"number":472,"title":"Global \"db_connect_retries\" parameter","user":{"login":"liviuchircu","id":4446084,"avatar_url":"https://avatars.githubusercontent.com/u/4446084?v=3","gravatar_id":"","url":"https://api.github.com/users/liviuchircu","html_url":"https://github.com/liviuchircu","followers_url":"https://api.github.com/users/liviuchircu/followers","following_url":"https://api.github.com/users/liviuchircu/following{/other_user}","gists_url":"https://api.github.com/users/liviuchircu/gists{/gist_id}","starred_url":"https://api.github.com/users/liviuchircu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liviuchircu/subscriptions","organizations_url":"https://api.github.com/users/liviuchircu/orgs","repos_url":"https://api.github.com/users/liviuchircu/repos","events_url":"https://api.github.com/users/liviuchircu/events{/privacy}","received_events_url":"https://api.github.com/users/liviuchircu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-20T15:58:29Z","updated_at":"2015-04-20T15:58:29Z","closed_at":null,"body":"The \"retry-on-connect\" problem looks to be solved (need to confirm this) on each TCP-oriented database driver. However, retries is often hard-coded (e.g. db_mysql/dbase.c +300), or not even implemented at all (db_mysql/my_con.c +109).\r\n\r\nSince this is really a common corner-case scenario for any backend, it would be nice to simply have a global parameter which dictates the number of attempted retries."}}