From c924af26fdd046d158fd50575583ea6a31e725ea Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 4 Sep 2014 01:36:56 +0000 Subject: Add missing timeouts in StreamableMemBlock::Set and testbbackupd. Reduces warnings about network operations with no timeout. May prevent some hangs that might have occurred waiting forever for network data in the past. --- test/bbackupd/testbbackupd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index 7dd1b2c5..6834b482 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -87,6 +87,7 @@ // two cycles and a bit #define TIME_TO_WAIT_FOR_BACKUP_OPERATION 12 +#define SHORT_TIMEOUT 5000 std::string current_test_name; std::map s_test_status; @@ -777,7 +778,7 @@ std::auto_ptr ReadDirectory std::auto_ptr dirreply( rClient.QueryListDirectory(id, false, 0, false)); std::auto_ptr apDir( - new BackupStoreDirectory(rClient.ReceiveStream())); + new BackupStoreDirectory(rClient.ReceiveStream(), SHORT_TIMEOUT)); return apDir; } -- cgit v1.2.3