codec valgrind clean, fast search and UDP shutdown, robust testSum service

This commit is contained in:
Matej Sekoranja
2014-03-25 20:50:21 +01:00
parent dea00d5309
commit 0230d5f241
6 changed files with 68 additions and 26 deletions

View File

@@ -3004,6 +3004,11 @@ namespace epics {
void send(epics::pvData::ByteBuffer* buffer,
TransportSendControl* control)
{
// after connection_closed_exception is thrown codec is no longer valid,
// however we want to do some tests and in order for memory checkers not to complain
// the following step is needed
memset((void*)buffer->getBuffer(), 0, buffer->getSize());
throw connection_closed_exception(
"expected test exception");
}