This commit is contained in:
Saúl Ibarra Corretgé 2025-02-26 11:36:02 -05:00 committed by GitHub
commit d49ab09795
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 6 deletions

View File

@ -68,7 +68,7 @@ static void idle_cb(uv_idle_t* idle) {
static void poll_cb(uv_poll_t* handle, int status, int events) { static void poll_cb(uv_poll_t* handle, int status, int events) {
char buffer[5]; char buffer[5];
int n; int n;
int fd; uv_os_fd_t fd;
ASSERT_OK(uv_fileno((uv_handle_t*)handle, &fd)); ASSERT_OK(uv_fileno((uv_handle_t*)handle, &fd));
memset(buffer, 0, 5); memset(buffer, 0, 5);

View File

@ -47,11 +47,6 @@ static void read_cb(uv_stream_t* t, ssize_t nread, const uv_buf_t* buf) {
ASSERT_PTR_EQ((uv_tcp_t*) t, &tcp); ASSERT_PTR_EQ((uv_tcp_t*) t, &tcp);
ASSERT_EQ(nread, UV_ECONNRESET); ASSERT_EQ(nread, UV_ECONNRESET);
int fd;
ASSERT_OK(uv_fileno((uv_handle_t*) t, &fd));
uv_handle_type type = uv_guess_handle(fd);
ASSERT_EQ(type, UV_TCP);
uv_close((uv_handle_t *) t, close_cb); uv_close((uv_handle_t *) t, close_cb);
free(buf->base); free(buf->base);
} }