[tester::#NV3] error reading from connection: read tcp 127.0.0.1:37916->127.0.0.1:9092: read: connection reset by peer
[tester::#NV3] Test failed
as soon as I do any read of any size from client_fd
if I comment out all reads then #NV3 passes with hardcoded 7 for correlation_id, but there is no way to echo correlation_id from client request so it fails #WA6.
I also tried draining all request, before writing and after writing but it does not change anything.
On logs I can see that I’m receiving expected data from request.
Another thing I tried was writing before doing any read and also get same message.
discounting the size of the parts that were already read.
Now I tried
size_t to_drain = req_message_size - 2 - 2 - 4;
and it worked.
I’m still trying to figure out why, but maybe the message_size itself is not considered part of the message? I don’t know, but It is working now.
But I would not figure this out without trying your code first.