mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
Add setReceiveTimeout
This commit is contained in:
@@ -143,6 +143,8 @@ public:
|
||||
/// Sends all commands (pipelining) to the Redis server before
|
||||
/// getting all replies.
|
||||
|
||||
void setReceiveTimeout(const Timespan& timeout);
|
||||
|
||||
private:
|
||||
|
||||
Client(const Client&);
|
||||
@@ -176,6 +178,11 @@ void Client::execute<void>(const Array& command)
|
||||
writeCommand(command);
|
||||
}
|
||||
|
||||
inline void Client::setReceiveTimeout(const Timespan& timeout)
|
||||
{
|
||||
_socket.setReceiveTimeout(timeout);
|
||||
}
|
||||
|
||||
|
||||
} } // namespace Poco::Redis
|
||||
|
||||
|
||||
Reference in New Issue
Block a user