* @param size size of data to write
* @param timeoutMS timeout in milliseconds
*/
-void write(int fd, const void* bufferPtr, const size_t size, int timeoutMS = 500);
+void write(int fd, const void* bufferPtr, const size_t size, int timeoutMS = 5000);
/**
* Read from a file descriptor, throw on error.
* @param size size of the data to read
* @param timeoutMS timeout in milliseconds
*/
-void read(int fd, void* bufferPtr, const size_t size, int timeoutMS = 500);
+void read(int fd, void* bufferPtr, const size_t size, int timeoutMS = 5000);
/**
* @return the max number of file descriptors for this process.
* @param size size of the buffer
* @param timeoutMS timeout in milliseconds
*/
- void write(const void* bufferPtr, const size_t size, const unsigned int timeoutMS = 500);
+ void write(const void* bufferPtr, const size_t size, const unsigned int timeoutMS = 5000);
/**
* Reads a value of the given type.
* @param size size of the buffer
* @param timeoutMS timeout in milliseconds
*/
- void read(void* bufferPtr, const size_t size, const unsigned int timeoutMS = 500);
+ void read(void* bufferPtr, const size_t size, const unsigned int timeoutMS = 5000);
private:
int mFD;
template<typename SentDataType, typename ReceivedDataType>
std::shared_ptr<ReceivedDataType> callSync(const MethodID methodID,
const std::shared_ptr<SentDataType>& data,
- unsigned int timeoutMS = 500);
+ unsigned int timeoutMS = 5000);
/**
* Asynchronous method call. The return callback will be called on
std::shared_ptr<ReceivedDataType> callSync(const MethodID methodID,
const PeerID peerID,
const std::shared_ptr<SentDataType>& data,
- unsigned int timeoutMS = 500);
+ unsigned int timeoutMS = 5000);
/**
* Asynchronous method call
std::shared_ptr<ReceivedDataType> callSync(const MethodID methodID,
const PeerID peerID,
const std::shared_ptr<SentDataType>& data,
- unsigned int timeoutMS = 500);
+ unsigned int timeoutMS = 5000);
/**
* Asynchronous method call. The return callback will be called on