else
idle_scan_count = 0;
- debug(2, "Scan Result: %d, Bad Scan Count: %d, Idle Scan Count: %d.", result, bad_result_count,
+ debug(3, "Scan Result: %d, Bad Scan Count: %d, Idle Scan Count: %d.", result, bad_result_count,
idle_scan_count);
if ((bad_result_count == config.scan_max_bad_response_count) ||
check_buf->resend_level = j;
if (config.disable_resend_requests == 0) {
rtp_request_resend(next, 1, conn);
- if (j >= 3)
+ if (j >= 6)
debug(2, "Resend request level #%d for packet %u in range %u to %u.", j, next,
conn->ab_read, conn->ab_write);
conn->resend_requests++;
}
#endif
uint64_t time_of_sending_fp = get_absolute_time_in_fp();
- uint64_t resend_error_backoff_time = (uint64_t)10 << 32; // ten seconds
- if ((conn->rtp_time_of_last_resend_request_error_fp) ||
+ uint64_t resend_error_backoff_time = (uint64_t)1 << (32-1); // half a second
+ if ((conn->rtp_time_of_last_resend_request_error_fp==0) ||
((time_of_sending_fp - conn->rtp_time_of_last_resend_request_error_fp) >
resend_error_backoff_time)) {
if ((config.diagnostic_drop_packet_fraction == 0.0) ||
(struct sockaddr *)&conn->rtp_client_control_socket, msgsize) == -1) {
char em[1024];
strerror_r(errno, em, sizeof(em));
- debug(1, "Error %d using send-to to an audio socket: \"%s\". ", errno, em);
+ debug(1, "Error %d using send-to to an audio socket: \"%s\". Backing off for 0.5 seconds.", errno, em);
conn->rtp_time_of_last_resend_request_error_fp = time_of_sending_fp;
} else {
conn->rtp_time_of_last_resend_request_error_fp = 0;
}
} else {
- debug(3, "Dropping resend request packet to simulate a bad network.");
+ debug(3, "Dropping resend request packet to simulate a bad network. Backing off for 0.5 seconds.");
+ conn->rtp_time_of_last_resend_request_error_fp = time_of_sending_fp;
}
+ } else {
+ debug(3,"Backing off sending resend requests due to a previous send-to error");
}
} else {
// if (!request_sent) {