From 39afb2ad2195ad64223198e1b6c99ed659d1ef81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Mon, 24 Oct 2016 08:17:59 +0200 Subject: [PATCH] Properly initialize accepted stream sockets. --- source/eventcore/drivers/posix.d | 1 + 1 file changed, 1 insertion(+) diff --git a/source/eventcore/drivers/posix.d b/source/eventcore/drivers/posix.d index 172efbb..a29864a 100644 --- a/source/eventcore/drivers/posix.d +++ b/source/eventcore/drivers/posix.d @@ -313,6 +313,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets setSocketNonBlocking(cast(SocketFD)sockfd); auto fd = cast(StreamSocketFD)sockfd; m_loop.initFD(fd); + m_loop.m_fds[fd].specific = StreamSocketSlot.init; m_loop.registerFD(fd, EventMask.read|EventMask.write|EventMask.status); //print("accept %d", sockfd); m_loop.m_fds[listenfd].streamListen.acceptCallback(cast(StreamListenSocketFD)listenfd, fd);