Ignore:
Timestamp:
10/15/15 15:15:09 (6 years ago)
Author:
rlacroix
Message:

Fix a small mistake in the buffer size evaluation.

The issue affected only the server to client communications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/grid.cpp

    r731 r739  
    139139   { 
    140140     std::map<int, StdSize> dataSizes; 
    141      const size_t extraSize = CEventClient::headerSize + (id.empty() ? getId() : id).size() + sizeof(size_t); 
     141     // The record index is sometimes sent along with the data but we always 
     142     // include it in the size calculation for the sake of simplicity 
     143     const size_t extraSize = CEventClient::headerSize + (id.empty() ? getId() : id).size() + 2 * sizeof(size_t); 
    142144 
    143145     std::map<int, size_t>::const_iterator itb = connectedDataSize_.begin(), it, itE = connectedDataSize_.end(); 
Note: See TracChangeset for help on using the changeset viewer.