Update libEpollFuzzer, uSockets

This commit is contained in:
Alex Hultman
2020-08-21 21:05:06 +02:00
parent b039f95cc1
commit f5440c6958
3 changed files with 7 additions and 6 deletions
+5 -4
View File
@@ -99,7 +99,7 @@ void teardown() {
/* If we are called twice there's a bug (it potentially could if /* If we are called twice there's a bug (it potentially could if
* all open sockets cannot be error-closed in one epoll_wait call). * all open sockets cannot be error-closed in one epoll_wait call).
* But we only allow 1k FDs and we have a buffer of 1024 from epoll_wait */ * But we only allow 1k FDs and we have a buffer of 1024 from epoll_wait */
if (!listen_socket) { if (!listen_socket && !client) {
exit(-1); exit(-1);
} }
@@ -110,7 +110,8 @@ void teardown() {
/* We might have open sockets still, and these will be error-closed by epoll_wait */ /* We might have open sockets still, and these will be error-closed by epoll_wait */
// us_socket_context_close - close all open sockets created with this socket context // us_socket_context_close - close all open sockets created with this socket context
if (listen_socket) {
us_listen_socket_close(0, listen_socket); us_listen_socket_close(0, listen_socket);
listen_socket = NULL; listen_socket = NULL;
}
} }