diff options
| author | 2008-08-18 22:42:35 +0000 | |
|---|---|---|
| committer | 2008-08-18 22:42:35 +0000 | |
| commit | 4af37470382f63f7e6a1cb179ced332fc2ccc510 (patch) | |
| tree | 730b95b6cc2400f0927d518df4360f21ce130a92 /src/inspsocket.cpp | |
| parent | Increase the size of the matrix for map drawing to 250x250 (diff) | |
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
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
