# HG changeset patch
# User Sjoerd Mullender <sjoerd@acm.org>
# Date 1558018324 -7200
# Node ID 53aae47a9483ad79594ea5a7dd3cfe2b564ea2a8
# Parent  938088d6b94c03f32036f97e0a8a55e8af66eb08
The MAPI protocol works in chunks of 8190 bytes.
Thanks to Jeremy Norris for finding the bug and for suggesting a fix
(although I used a different value).

diff --git a/lib/MonetDBConnection.rb b/lib/MonetDBConnection.rb
--- a/lib/MonetDBConnection.rb
+++ b/lib/MonetDBConnection.rb
@@ -53,7 +53,7 @@ class MonetDBConnection
   @@HOUR                = 3600
 
   # maximum size (in bytes) for a monetdb message to be sent
-  @@MAX_MESSAGE_SIZE    = 32766
+  @@MAX_MESSAGE_SIZE    = 8190
   
   # endianness of a message sent to the server
   @@CLIENT_ENDIANNESS   = "BIG"