summaryrefslogtreecommitdiff
path: root/src/connection.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-04 12:57:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-04 12:57:35 +0000
commitdaa68cffe0b8231864dab7a89c72faececc00b3c (patch)
treea6d9da5a7e57979a32e5ffe6b772b3dbb0715edd /src/connection.cpp
parent6b72695ef6eb744bf8bff77ed228d63f7468e1d0 (diff)
Fix to a mode parsing bug (eating wrong version of parameter?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1304 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 6302b1e7e..d42dea179 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -492,8 +492,8 @@ bool connection::SendPacket(char *message, const char* sendhost)
bool connection::RecvPacket(std::deque<std::string> &messages, char* recvhost)
{
- char data[4096];
- memset(data, 0, 4096);
+ char data[65536];
+ memset(data, 0, 65536);
for (int i = 0; i < this->connectors.size(); i++)
{
if (this->connectors[i].GetState() != STATE_DISCONNECTED)
@@ -509,7 +509,7 @@ bool connection::RecvPacket(std::deque<std::string> &messages, char* recvhost)
int ret = poll(&polls,1,1);
if (ret <= 0) continue;
- rcvsize = recv(this->connectors[i].GetDescriptor(),data,4090,0);
+ rcvsize = recv(this->connectors[i].GetDescriptor(),data,65000,0);
data[rcvsize] = '\0';
if (rcvsize == -1)
{