diff --git a/Unhinged/Engine/UnhingedEngine.Worker.cs b/Unhinged/Engine/UnhingedEngine.Worker.cs index 117b9f2..3568c2d 100644 --- a/Unhinged/Engine/UnhingedEngine.Worker.cs +++ b/Unhinged/Engine/UnhingedEngine.Worker.cs @@ -86,7 +86,7 @@ private static unsafe void WorkerLoop(Worker W) { // We care about readable input and remote half-close; errors/hups too. byte* ev = stackalloc byte[EvSize]; - WriteEpollEvent(ev, EPOLLIN | EPOLLRDHUP | EPOLLERR | EPOLLHUP, cfd); + WriteEpollEvent(ev, EPOLLIN | EPOLLRDHUP | EPOLLERR | EPOLLHUP | EPOLLET, cfd); epoll_ctl(W.Ep, EPOLL_CTL_ADD, cfd, (IntPtr)ev); // Adding a new connection to the pool, setting the file descriptor for the client socket @@ -139,8 +139,8 @@ private static unsafe void WorkerLoop(Worker W) // TODO: Which one, continue or break? break avoids an extra read to get a EAGAIN // TODO: But continue may read more data without the need of an extra epoll event - //continue; - break; + continue; + //break; } if (got == 0) { CloseConn(fd, connections, W); break; } // peer closed diff --git a/Unhinged/Unhinged.csproj b/Unhinged/Unhinged.csproj index 790b042..3982ca6 100644 --- a/Unhinged/Unhinged.csproj +++ b/Unhinged/Unhinged.csproj @@ -10,9 +10,9 @@ Diogo Martins https://github.com/MDA2AV/Unhinged git - 9.0.5 - 9.0.5 - 9.0.5 + 9.0.6 + 9.0.6 + 9.0.6 README.md Unhinged LICENSE