[Tickets #11071] Re: Splitting long content into multiple messages

bugs at horde.org bugs at horde.org
Sun Mar 25 15:57:53 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11071
------------------------------------------------------------------------------
  Ticket             | 11071
  Updated By         | thomas at trethan.net
  Summary            | Splitting long content into multiple messages
  Queue              | Synchronization
  Version            | Git master
  Type               | Enhancement
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
+New Attachment     | SyncSplit2.patch
------------------------------------------------------------------------------


thomas at trethan.net (2012-03-25 15:57) wrote:

Added new patch (SyncSplit2.patch) with the following improvements in  
Sync.php:
- code to get next chunk was moved to seperate function  
_getServerLargeObjChunk()
- code to determine split position and ensure that no whitespaces are  
on edges optimized by single preg_match function instead of loop (see  
_getServerLargeObjChunk())
- checks whether there is space left in sync messages adapted: only  
split objects, that are too large for a single message; objects that  
fit into a single message won't be split anymore, but sent in the next  
message; this prevents skipping of smaller objects when client device  
doesn't support splitting

I think handling of client responses should be treated in another  
ticket, since it is a general issue and not related to splitting  
objects only.



thomas at trethan.net (2012-03-25 15:57) uploaded: SyncSplit2.patch

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=SyncSplit2.patch&ticket=11071&fn=%2FSyncSplit2.patch





More information about the bugs mailing list