in amq.js [124:134]
var pollErrorHandler = function(xhr, status, ex) {
connectStatusHandler(false);
if (status === 'error' && xhr.status === 0) {
if (logging) adapter.log('Server connection dropped.');
setTimeout(function() { sendPoll(); }, pollErrorDelay);
return;
}
if (logging) adapter.log('Error occurred in poll. HTTP result: ' +
xhr.status + ', status: ' + status);
setTimeout(function() { sendPoll(); }, pollErrorDelay);
}