Ignore:
Timestamp:
08/04/16 16:24:20 (8 years ago)
Author:
rlacroix
Message:

Fix the client/server communication protocol.

In the some extreme cases a deadlock could occur. To fix this, the number of buffered events must be properly limited.

If you noticed decreased performance due to this commit, please let us know about it.

Fixes ticket #91.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/context_client.hpp

    r726 r917  
    4949      void finalize(void); 
    5050 
    51       void setBufferSize(const std::map<int,StdSize>& mapSize); 
     51      void setBufferSize(const std::map<int,StdSize>& mapSize, const std::map<int,StdSize>& maxEventSize); 
    5252 
    5353    public: 
     
    7171      //! Mapping of server and buffer size for each connection to server 
    7272      std::map<int,StdSize> mapBufferSize_; 
     73      //! Maximum number of events that can be buffered 
     74      StdSize maxBufferedEvents; 
    7375 
    7476      //! Context for server (Only used in attached mode) 
Note: See TracChangeset for help on using the changeset viewer.