changeset 13:53aae47a9483

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).
author Sjoerd Mullender <sjoerd@acm.org>
date Thu, 16 May 2019 16:52:04 +0200 (2019-05-16)
parents 938088d6b94c
children 61b853c06174
files lib/MonetDBConnection.rb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"