r7445 - dumbhippo/trunk/firehose/firehose/jobs



Author: walters
Date: 2008-04-23 16:53:52 -0500 (Wed, 23 Apr 2008)
New Revision: 7445

Modified:
   dumbhippo/trunk/firehose/firehose/jobs/master.py
Log:
Add some message headroom


Modified: dumbhippo/trunk/firehose/firehose/jobs/master.py
===================================================================
--- dumbhippo/trunk/firehose/firehose/jobs/master.py	2008-04-21 17:34:37 UTC (rev 7444)
+++ dumbhippo/trunk/firehose/firehose/jobs/master.py	2008-04-23 21:53:52 UTC (rev 7445)
@@ -266,7 +266,8 @@
         finally:
             self.__task_lock.release()
             
-        maxchars = 8*1024
+        maxchars = 8*1024 # SQS 
+        maxchars *= 0.6666 # Multiply by 0.6666 to account for Base64, with some extra headroom
         remaining_bytes = maxchars
         taskcount = 0
         buf = "add\n"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]