8000 abort fuzzing if we loose the connection to the arangod (#21679) · solisoft/arangodb@b7b0841 · GitHub
[go: up one dir, main page]

Skip to content

Commit b7b0841

Browse files
authored
abort fuzzing if we loose the connection to the arangod (arangodb#21679)
1 parent c269043 commit b7b0841

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client-tools/Shell/V8ClientConnection.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,10 @@ static void ClientConnection_httpFuzzRequests(
14321432

14331433
for (uint64_t i = 0; i < numReqs; ++i) {
14341434
uint32_t returnCode = v8connection->sendFuzzRequest(fuzzer);
1435+
if (returnCode == kFuzzNotConnected) {
1436+
TRI_V8_THROW_EXCEPTION_MESSAGE(TRI_ERROR_SIMPLE_CLIENT_COULD_NOT_CONNECT,
1437+
"connection lost during fuzzing tests");
1438+
}
14351439
fuzzReturnCodesCount[returnCode]++;
14361440
}
14371441

0 commit comments

Comments
 (0)
0