mirror of
https://github.com/nmap/nmap.git
synced 2026-09-01 07:52:57 +00:00
mass_dns: prioritize sending new requests over retransmissions
This commit is contained in:
parent
fe5bbce0a4
commit
16c9d36148
1 changed files with 4 additions and 4 deletions
|
|
@ -452,14 +452,14 @@ static void do_possible_writes() {
|
|||
for(servI = servs.begin(); servI != servs.end(); servI++) {
|
||||
if (servI->write_busy == 0 && servI->reqs_on_wire < servI->capacity) {
|
||||
tpreq = NULL;
|
||||
if (!servI->to_process.empty()) {
|
||||
tpreq = servI->to_process.front();
|
||||
servI->to_process.pop_front();
|
||||
} else if (!new_reqs.empty()) {
|
||||
if (!new_reqs.empty()) {
|
||||
tpreq = new_reqs.front();
|
||||
assert(tpreq != NULL);
|
||||
tpreq->first_server = tpreq->curr_server = &*servI;
|
||||
new_reqs.pop_front();
|
||||
} else if (!servI->to_process.empty()) {
|
||||
tpreq = servI->to_process.front();
|
||||
servI->to_process.pop_front();
|
||||
}
|
||||
|
||||
if (tpreq) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue