update: MSG_MORE flag for send function

This commit is contained in:
ngn
2024-08-09 03:18:03 +03:00
parent 7fc63f3693
commit cb9f5da339
4 changed files with 9 additions and 3 deletions

View File

@ -120,7 +120,7 @@ bool lm_mptp_server_send(int sock, lm_mptp_t *packet) {
copy_to_buffer(buffer, packet->host, packet->header.host_size, &total, &used);
copy_to_buffer(buffer, packet->data, packet->header.data_size, &total, &used);
if (send(sock, buffer, buflen, 0) < 0) {
if (send(sock, buffer, buflen, MSG_MORE) < 0) {
lm_error_set(LM_ERR_MPTPSendFail);
return false;
}