Increase socket timeout
authorHyunwoo Kim <hwlove.kim@samsung.com>
Tue, 7 May 2013 12:54:07 +0000 (21:54 +0900)
committerHyunwoo Kim <hwlove.kim@samsung.com>
Tue, 7 May 2013 12:54:11 +0000 (21:54 +0900)
Change-Id: I38c886b88931d60f775706a4f905fca9ef37ebea
Signed-off-by: Hyunwoo Kim <hwlove.kim@samsung.com>
socket_connection/connection/SocketStream.cpp

index 73abedf..da3694d 100644 (file)
 #include <dpl/log/log.h>
 #include "SocketStream.h"
 
-#define READ_TIEMOUT_SEC 1
+#define READ_TIEMOUT_SEC 10
 #define READ_TIMEUOT_NSEC 0
-#define WRITE_TIMEOUT_SEC 0
-#define WRITE_TIMEOUT_NSEC 100000000
+#define WRITE_TIMEOUT_SEC 1
+#define WRITE_TIMEOUT_NSEC 0
 #define MAX_BUFFER 10240
 
 void SocketStream::throwWithErrnoMessage(std::string function_name){