From 4af37470382f63f7e6a1cb179ced332fc2ccc510 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 18 Aug 2008 22:42:35 +0000 Subject: Work around OpenSSL retardation and braindamage: if you pass a different buffer to SSL_write() (location or contents/length), then the SSL_write() fails, which will kill the connection. Set ENABLE_PARTIAL_WRITE and ACCEPT_MOVING_WRITE_BUFFER to fix/work around this.. Thanks Namegduf. (add to contributors also) git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10160 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index a1c2ebbe4..ff45c2a11 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -647,10 +647,11 @@ bool InspSocket::Poll() else #endif recvip = inet_ntoa(((sockaddr_in*)client)->sin_addr); - this->OnIncomingConnection(incoming, (char*)recvip.c_str()); NonBlocking(incoming); + this->OnIncomingConnection(incoming, (char*)recvip.c_str()); + if (this->IsIOHooked) { try -- cgit v1.3.1-10-gc9f91