summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorlordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-19 10:21:16 +0000
committerlordttseven <lordttseven@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-19 10:21:16 +0000
commit618b748f152408b5758a528c69136ec9bde5f907 (patch)
tree4796803795d8e9faa506c59e1166899784803cd3 /src/common
parenteb093bdeab2bf06125d7560af3a9ff72b29977c8 (diff)
downloadhercules-618b748f152408b5758a528c69136ec9bde5f907.tar.gz
hercules-618b748f152408b5758a528c69136ec9bde5f907.tar.bz2
hercules-618b748f152408b5758a528c69136ec9bde5f907.tar.xz
hercules-618b748f152408b5758a528c69136ec9bde5f907.zip
- reverted part of r15609 since apparently the issue is purely limited to ZC_SKILLINFO_LIST, and this change breaks big storages
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15613 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/socket.c3
-rw-r--r--src/common/socket.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index a98a8cbb1..592755d5a 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -219,8 +219,7 @@ int naddr_ = 0; // # of ip addresses
// Maximum packet size in bytes, which the client is able to handle.
// Larger packets cause a buffer overflow and stack corruption.
-// TODO: This value is based on pure observation with newer clients. Replace with the actual buffer size if we ever get our hands on it.
-size_t socket_max_client_packet = 8192;
+static size_t socket_max_client_packet = 24576;
// initial recv buffer size (this will also be the max. size)
// biggest known packet: S 0153 <len>.w <emblem data>.?B -> 24x24 256 color .bmp (0153 + len.w + 1618/1654/1756 bytes)
diff --git a/src/common/socket.h b/src/common/socket.h
index 1328d4b23..a5d519d0e 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -94,7 +94,6 @@ struct socket_data
void* session_data; // stores application-specific data related to the session
};
-extern size_t socket_max_client_packet;
// Data prototype declaration