X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsisend.c;fp=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsisend.c;h=c0233aeabe805d2bca0eaaed10b3d668c0eafaf4;hb=5861625ff2eaf1bd3a69ce488bd7d14f7b402432;hp=5a8a94e38ccc476985619c7371251cbc5a040820;hpb=bf897297010df539909b7638d96557d41fd217b0;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/si/src/si95/sisend.c b/src/rmr/si/src/si95/sisend.c index 5a8a94e..c0233ae 100644 --- a/src/rmr/si/src/si95/sisend.c +++ b/src/rmr/si/src/si95/sisend.c @@ -46,7 +46,6 @@ extern void SIsend( struct ginfo_blk *gptr, struct tp_blk *tpptr ) { struct t_unitdata *udata; // pointer at UDP unit data struct ioq_blk *qptr; // pointer at qio block for free int status; -//static int announced = 0; // TESTING if( tpptr->squeue == NULL ) // who knows why we were called return; // nothing queued - just leave @@ -64,14 +63,6 @@ extern void SIsend( struct ginfo_blk *gptr, struct tp_blk *tpptr ) { } */ - -/* -//TESTING -if( !announced && status < tpptr->squeue->dlen ) { -announced = 1; -fprintf( stderr, ">>>>>>> !!!!!! SIsend: short send: %d != %d\n", status, tpptr->squeue->dlen ); -} -*/ free( tpptr->squeue->data ); // trash buffer or the udp block qptr = tpptr->squeue; // hold pointer for free tpptr->squeue = tpptr->squeue->next; // next in queue becommes head @@ -82,6 +73,6 @@ fprintf( stderr, ">>>>>>> !!!!!! SIsend: short send: %d != %d\n", status, tpptr- if( (tpptr->flags & TPF_DRAIN) && tpptr->squeue == NULL ) // done w/ drain? { - SIterm( gptr, tpptr ); // trash the tp block + SIterm( gptr, tpptr ); // close the session and mark the block for delte } } // SIsend