update: MSG_MORE flag for send function
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user