Fix a bug that caused a crash on empty HTTP requests (localhost only) and add a lightweight lock to the RX queue to prevent possible threads stepping on each other in parallel receive paths.

This commit is contained in:
Adam Ierymenko 2018-07-20 14:01:58 -07:00
parent 9bc11a369c
commit 5b114791e5
4 changed files with 8 additions and 3 deletions

View file

@ -382,8 +382,6 @@ void Topology::doPeriodicTasks(void *tPtr,int64_t now)
}
}
// Temporarily disable path cleanup to test hypothesis about periodic threading issues as reported by Keysight.
/*
{
Mutex::Lock _l(_paths_m);
Hashtable< Path::HashKey,SharedPtr<Path> >::Iterator i(_paths);
@ -394,7 +392,6 @@ void Topology::doPeriodicTasks(void *tPtr,int64_t now)
_paths.erase(*k);
}
}
*/
}
void Topology::_memoizeUpstreams(void *tPtr)