diff --git a/xwords4/relay/tpool.cpp b/xwords4/relay/tpool.cpp index 8d0cc1d79..2aff5caab 100644 --- a/xwords4/relay/tpool.cpp +++ b/xwords4/relay/tpool.cpp @@ -203,6 +203,7 @@ XWThreadPool::get_process_packet( SockType stype, QueueCallback proc, const Addr short packetSize; assert( sizeof(packetSize) == 2 ); + // Fix this to return an allocated buffer unsigned char buf[MAX_MSG_LEN+1]; int nRead = read_packet( addr->socket(), buf, sizeof(buf) ); if ( nRead < 0 ) { diff --git a/xwords4/relay/xwrelay.h b/xwords4/relay/xwrelay.h index 05edf1003..ff6af81d9 100644 --- a/xwords4/relay/xwrelay.h +++ b/xwords4/relay/xwrelay.h @@ -188,7 +188,7 @@ typedef unsigned char XWRELAY_Cmd; #define HOST_ID_SERVER 1 #define MAX_INVITE_LEN 31 -#define MAX_MSG_LEN 1024 /* Used for proxy too! */ +#define MAX_MSG_LEN 2048 /* Used for proxy too! */ #define MAX_CONNNAME_LEN 48 /* host ID, boot time, and seeds as hex? */ #define MAX_DEVID_LEN 8 /* 32-bit number as hex */