Skip to content

Commit 0d35160

Browse files
sawenzelclaude
andcommitted
Skip malformed info requests in the primary server
This fixes the info thread of the o2-sim primary server for requests of unexpected size. - After the error reply the thread still read the request and could send a second reply on the REP socket. - It now continues to the next request after the error reply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7939bca commit 0d35160

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎run/O2PrimaryServerDevice.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ class O2PrimaryServerDevice final : public fair::mq::Device
273273
if (request->GetSize() != sizeof(request_payload)) {
274274
LOG(error) << "Obtained request with unexpected payload size";
275275
sendErrorReply(channel); // ALWAYS reply
276+
continue;
276277
}
277278

278279
memcpy(&request_payload, request->GetData(), sizeof(request_payload));

0 commit comments

Comments
 (0)