Refactor timeout code
Refactor timeout code

darkrasid/gitlabhq,t-zuehlsdorff/gitlabhq,htve/GitlabForChinese,iiet/iiet-git,iiet/iiet-git,dplarson/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,dplarson/gitlabhq,mmkassem/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,darkrasid/gitlabhq,darkrasid/gitlabhq,dplarson/gitlabhq,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq,mmkassem/gitlabhq,htve/GitlabForChinese,darkrasid/gitlabhq,iiet/iiet-git,dreampet/gitlab,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,htve/GitlabForChinese,dreampet/gitlab,htve/GitlabForChinese,dplarson/gitlabhq,dreampet/gitlab,jirutka/gitlabhq