remove some asserts Frank's seeing

This commit is contained in:
Eric House 2023-04-20 14:24:10 -07:00
parent eab9068d89
commit 8c60b99e82
2 changed files with 11 additions and 2 deletions

View file

@ -943,7 +943,12 @@ comms_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream,
--queueLen; /* was dropped */
}
}
XP_ASSERT( queueLen == comms->queueLen );
#ifdef DEBUG
if ( queueLen != comms->queueLen ) {
XP_LOGFF( "Error: queueLen %d != comms->queueLen %d",
queueLen, comms->queueLen );
}
#endif
if ( STREAM_VERS_DISABLEDS <= version ) {
for ( CommsConnType typ = (CommsConnType)0; typ < VSIZE(comms->disableds); ++typ ) {

View file

@ -382,7 +382,11 @@ dvc_makeMQTTMessages( XW_DUtilCtxt* dutil, XWEnv xwe,
for ( SendMsgsPacket* packet = (SendMsgsPacket*)msgs;
!!packet; packet = (SendMsgsPacket* const)packet->next ) {
XP_U32 len = packet->len;
XP_ASSERT( 0 < len ); /* will confuse server */
#ifdef DEBUG
if ( 0 == len ) {
XP_LOGFF( "ERROR: msg len 0" );
}
#endif
stream_putU32VL( stream, len );
stream_putBytes( stream, packet->buf, len );
nSent1 += len;