Skip to content

Commit

Permalink
Removed adding size in header for consecutive packets
Browse files Browse the repository at this point in the history
syncml-ds-tool does not like receiving 'size' field in packets after the
first. Could not find reference to this restriction in the
documentation though.

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
  • Loading branch information
kavuri committed Aug 23, 2013
1 parent e9d9263 commit 888e781
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/LocalChangesPackage.cpp
Expand Up @@ -393,7 +393,10 @@ bool LocalChangesPackage::processItem( const SyncItemKey& aItemKey,
LOG_DEBUG( "Writing chunk of" << aSizeThreshold << "bytes" );
// Need to send more chunks after this one
item->read( iLargeObjectState.iOffset, aSizeThreshold, data );
aParent.addSizeMetadata( size );
// syncml-ds-tool from libsyncml complains that
// consecutive package of a single message should
// not have size in header
//aParent.addSizeMetadata( size );
itemObject->insertData( data );
itemObject->insertMoreData();
iLargeObjectState.iOffset += aSizeThreshold;
Expand Down

0 comments on commit 888e781

Please sign in to comment.