loti-examples
loti-examples copied to clipboard
What happens if short-read from client socket?
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.