diff options
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 6 |
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) { |