Compare commits

...

5 Commits

Author SHA1 Message Date
Caleb Maclennan 26b524e1d7
Revert "fix(usocket): Fix typo in return value function name"
This reverts commit 88c72acd77.

See discussion on #390
2022-08-31 00:34:39 +03:00
Caleb Maclennan 48164b572e
Merge branch 'zhaozg/master' 2022-08-30 13:17:21 +03:00
zhaozg 159890c366
style(usocket): Remove trailing space at EOL 2022-08-30 13:16:38 +03:00
zhaozg 88c72acd77
fix(usocket): Fix typo in return value function name 2022-08-30 13:15:53 +03:00
George Zhao 30ddf0eaea
style(core) Remove lingering c-style comment (#388) 2022-08-27 21:31:54 +03:00
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ int opt_set_send_buf_size(lua_State *L, p_socket ps)
return opt_setint(L, ps, SOL_SOCKET, SO_SNDBUF);
}
// /*------------------------------------------------------*/
/*------------------------------------------------------*/
#ifdef TCP_FASTOPEN
int opt_set_tcp_fastopen(lua_State *L, p_socket ps)

View File

@ -236,7 +236,7 @@ int socket_sendto(p_socket ps, const char *data, size_t count, size_t *sent,
*sent = 0;
if (*ps == SOCKET_INVALID) return IO_CLOSED;
for ( ;; ) {
long put = (long) sendto(*ps, data, count, 0, addr, len);
long put = (long) sendto(*ps, data, count, 0, addr, len);
if (put >= 0) {
*sent = put;
return IO_DONE;