Commit c6a0b717 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Replace write() with send().

parent df8c6443
Pipeline #2969 passed with stages
in 1 minute and 42 seconds
......@@ -130,7 +130,7 @@ static inline ssize_t _send(socket_t conn, const char *buf, size_t size)
printf("Select failed: %d.\n", errno);
return -1;
} else if (retval > 0) {
n = send(conn, buf, size - written, 0);
n = write(conn, buf, size - written);
if (n < 0) {
_time();
printf("SEND FAILED: %ld, errno: %d, written: %ld / %lu\n", n, errno, written, size);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment