Skip to content

Commit

Permalink
Increased comms buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Feb 2, 2017
1 parent 1991d17 commit d8433a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc.cpp
Expand Up @@ -1347,7 +1347,7 @@ CString str = strText;

void CMUSHclientDoc::ReceiveMsg()
{
char buff [1000]; // must be less than COMPRESS_BUFFER_LENGTH or it won't fit
char buff [9000]; // must be less than COMPRESS_BUFFER_LENGTH or it won't fit
int count = m_pSocket->Receive (buff, sizeof (buff) - 1);

Frame.CheckTimerFallback (); // see if time is up for timers to fire
Expand Down
2 changes: 1 addition & 1 deletion doc.h
Expand Up @@ -16,7 +16,7 @@
#include "plugins.h"
#include "version.h"

#define COMPRESS_BUFFER_LENGTH 1024 // size of decompression buffer
#define COMPRESS_BUFFER_LENGTH 10000 // size of decompression buffer
extern CString MUSHCLIENT_VERSION;

// ============================================================================
Expand Down

0 comments on commit d8433a7

Please sign in to comment.