I have tried below code on different ways using angualrjs.but there is no reflection on connection timeout in request header as well as application flow.i have went through many angular js sites. but no output.
angular.module('MyApp', [])
.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.timeout = 5000;
}]);