summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
Diffstat (limited to 'Ivy')
-rw-r--r--Ivy/BufferedSocket.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ivy/BufferedSocket.cxx b/Ivy/BufferedSocket.cxx
index 11eecf5..7df2bce 100644
--- a/Ivy/BufferedSocket.cxx
+++ b/Ivy/BufferedSocket.cxx
@@ -55,6 +55,7 @@ void CBufferedSocket::OnReceive(int nErrorCode)
nb_to_read = buffer_size - (current_ptr - buffer );
}
nb = ReceiveFrom( current_ptr, nb_to_read, &addr, &len, 0/*MSG_PARTIAL*/ );
+ ASSERT ( memchr( current_ptr, 0, nb) == NULL );
if ( nb == SOCKET_ERROR )
{
int err = this->GetLastError();
@@ -70,7 +71,6 @@ void CBufferedSocket::OnReceive(int nErrorCode)
}
current_ptr += nb;
- //ASSERT( current_ptr < (buffer + buffer_size) );
ptr = buffer;
while ((ptr_sep = (char*)memchr (ptr, separator, current_ptr - ptr )))
{
@@ -78,6 +78,7 @@ void CBufferedSocket::OnReceive(int nErrorCode)
//TRACE("message %s\n", ptr );
OnReceive( ptr );
ptr = ++ptr_sep;
+ //ASSERT( ptr < (buffer + buffer_size) );
}
if (ptr < current_ptr )
{ /* recopie ligne incomplete au debut du buffer */