mrloop icon indicating copy to clipboard operation
mrloop copied to clipboard

echo_server does not echo

Open Qix- opened this issue 5 years ago • 1 comments

Trying to run the echo_server with the rust benchmarker results in a read error. Sure enough, using nc localhost 12345 and typing a few lines gets me no results back to the client.

Am I missing something here?

Qix- avatar Sep 30 '20 02:09 Qix-

It seems that I/O would be submitted only if the number of operation is greater than 64. Thus, single write would not issue the execution.

Here is the related logic in mrloop.c:

if ( num_sqes > 64 ) { io_uring_submit(loop->ring); num_sqes = 0; }

eecheng87 avatar Oct 30 '22 01:10 eecheng87