Skip to content

Commit

Permalink
kws_raw_write should return the total number of bytes sent, not just …
Browse files Browse the repository at this point in the history
…the last fragment sent
  • Loading branch information
Astaelan committed Jul 16, 2024
1 parent dcddb83 commit cbc3a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kws.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ KS_DECLARE(ks_ssize_t) kws_raw_write(kws_t *kws, void *data, ks_size_t bytes)
//printf("wRITE FAIL: %s\n", strerror(errno));
//}

return r;
return wrote;
}

static void setup_socket(ks_socket_t sock)
Expand Down

0 comments on commit cbc3a06

Please sign in to comment.