Skip to content

Commit

Permalink
fix: address PR comments
Browse files Browse the repository at this point in the history
* fix s2n_ktls_io_sendfile_test.c
  • Loading branch information
Boquan Fang committed Oct 11, 2024
1 parent b1f4916 commit 8493d8c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unit/s2n_ktls_io_sendfile_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,10 @@ int main(int argc, char **argv)
DEFER_CLEANUP(struct s2n_test_io_pair io_pair = { 0 }, s2n_io_pair_close);
EXPECT_SUCCESS(s2n_io_pair_init_non_blocking(&io_pair));
int write_fd = io_pair.server;
int read_fd = io_pair.client;
EXPECT_SUCCESS(s2n_connection_set_write_fd(conn, write_fd));

/* Close one side of the stream to make the fds invalid */
s2n_io_pair_close_one_end(&io_pair, S2N_CLIENT);
read_fd = CLOSED_FD;

s2n_blocked_status blocked = S2N_NOT_BLOCKED;
size_t bytes_written = 0;
Expand Down

0 comments on commit 8493d8c

Please sign in to comment.