aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/random.cpp0
-rw-r--r--src/random.h0
-rw-r--r--src/randombase.cpp0
-rw-r--r--src/randombase.h0
-rw-r--r--src/randombasic.cpp0
-rw-r--r--src/randombasic.h0
-rw-r--r--src/tcpsocket.cpp2
7 files changed, 1 insertions, 1 deletions
diff --git a/src/random.cpp b/src/random.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/random.cpp
diff --git a/src/random.h b/src/random.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/random.h
diff --git a/src/randombase.cpp b/src/randombase.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/randombase.cpp
diff --git a/src/randombase.h b/src/randombase.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/randombase.h
diff --git a/src/randombasic.cpp b/src/randombasic.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/randombasic.cpp
diff --git a/src/randombasic.h b/src/randombasic.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/randombasic.h
diff --git a/src/tcpsocket.cpp b/src/tcpsocket.cpp
index 105529a..399ec44 100644
--- a/src/tcpsocket.cpp
+++ b/src/tcpsocket.cpp
@@ -165,7 +165,7 @@ Bu::size Bu::TcpSocket::read( void *pBuf, Bu::size nBytes )
165 { 165 {
166 int nRead = TEMP_FAILURE_RETRY( 166 int nRead = TEMP_FAILURE_RETRY(
167 bu_recv( nTcpSocket, (char *) pBuf, nBytes, 0 ) ); 167 bu_recv( nTcpSocket, (char *) pBuf, nBytes, 0 ) );
168 if( nRead == 0 ) 168 if( nRead == 0 && nBytes > 0 )
169 { 169 {
170 close(); 170 close();
171 throw TcpSocketException( TcpSocketException::cClosed, "TcpSocket closed."); 171 throw TcpSocketException( TcpSocketException::cClosed, "TcpSocket closed.");