eve/frame: break out of logging callback if buffer is full

pull/10654/head
Victor Julien 2 years ago committed by Victor Julien
parent 7d5b537f5c
commit 1dea4fea0b

@ -163,7 +163,9 @@ static int FrameJsonStreamDataCallback(
} }
if (write_size > 0) { if (write_size > 0) {
MemBufferWriteRaw(cbd->payload, input, write_size); uint32_t written = MemBufferWriteRaw(cbd->payload, input, write_size);
if (written < write_size)
done = 1;
} }
cbd->last_re = input_offset + write_size; cbd->last_re = input_offset + write_size;
return done; return done;

Loading…
Cancel
Save