loti-examples icon indicating copy to clipboard operation
loti-examples copied to clipboard

What happens if short-read from client socket?

Open aprilweet opened this issue 3 years ago • 0 comments

Though we have allocate a large enough buffer(READ_SZ) for reading from client, it is possible that we don't receive a complete http request. Though handle_client_request() checks for "\r\n" and exit while ill-formed package, i think it's better to re-queue a readv at this moment.

aprilweet avatar Dec 26 '21 09:12 aprilweet