mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Erase by key
This commit is contained in:
@@ -527,9 +527,7 @@ static int deal_with_timedout_reads() {
|
|||||||
servI->capacity = (int) (servI->capacity * CAPACITY_MINOR_DOWN_SCALE);
|
servI->capacity = (int) (servI->capacity * CAPACITY_MINOR_DOWN_SCALE);
|
||||||
check_capacities(&*servI);
|
check_capacities(&*servI);
|
||||||
servI->in_process.erase(reqI);
|
servI->in_process.erase(reqI);
|
||||||
std::map<u16, info>::iterator it = records.find(tpreq->id);
|
records.erase(tpreq->id);
|
||||||
if ( it != records.end() )
|
|
||||||
records.erase(it);
|
|
||||||
servI->reqs_on_wire--;
|
servI->reqs_on_wire--;
|
||||||
|
|
||||||
// If we've tried this server enough times, move to the next one
|
// If we've tried this server enough times, move to the next one
|
||||||
@@ -558,9 +556,7 @@ static int deal_with_timedout_reads() {
|
|||||||
output_summary();
|
output_summary();
|
||||||
stat_dropped++;
|
stat_dropped++;
|
||||||
total_reqs--;
|
total_reqs--;
|
||||||
infoI = records.find(tpreq->id);
|
records.erase(tpreq->id);
|
||||||
if ( infoI != records.end() )
|
|
||||||
records.erase(infoI);
|
|
||||||
delete tpreq;
|
delete tpreq;
|
||||||
|
|
||||||
// **** OR We start at the back of this server's queue
|
// **** OR We start at the back of this server's queue
|
||||||
|
|||||||
Reference in New Issue
Block a user