Skip to content
Snippets Groups Projects
Commit cf30b1e7 authored by Anatolii Kurotych's avatar Anatolii Kurotych
Browse files

[+] strerror to error send string

parent edf554c7
No related branches found
No related tags found
No related merge requests found
...@@ -224,7 +224,7 @@ static void read_write_cb (struct ev_loop* loop, struct ev_io* watcher, int reve ...@@ -224,7 +224,7 @@ static void read_write_cb (struct ev_loop* loop, struct ev_io* watcher, int reve
dap_cur->buf_out_size - total_sent, dap_cur->buf_out_size - total_sent,
MSG_DONTWAIT | MSG_NOSIGNAL ); MSG_DONTWAIT | MSG_NOSIGNAL );
if(bytes_sent < 0) { if(bytes_sent < 0) {
log_it(L_ERROR,"Some error occured in send() function"); log_it(L_ERROR,"Error occured in send() function %s", strerror(errno));
break; break;
} }
total_sent += (size_t)bytes_sent; total_sent += (size_t)bytes_sent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment