< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] RE: resiprocate-devel Digest, Vol 3, Issue 14


Guys

I am running a resirpocate basic signalling test applications.

         while(calls > 0)

         {
            FdSet fdset;
            mStack.buildFdSet(fdset);
            int err = fdset.selectMilliSeconds(0);
            assert (err != -1);
            mStack.process(fdset);

            SipMessage* received = mStack.receive();
            if (received)
            {
               auto_ptr<SipMessage> forDel(received);
               MethodTypes meth =
received->header(h_RequestLine).getMethod();
               //ErrLog ( << "Server received: " << MethodNames[meth]);
               if ( meth == INVITE )
               {


                  Data localTag = Helper::computeTag(4);
                  auto_ptr<SipMessage>
msg200(Helper::makeResponse(*received, 200, contact));
                  msg200->header(h_To).param(p_tag) = localTag;
                  //ErrLog( << "Sent 200");
                  mStack.send(*msg200);
               }


               if ( meth == BYE)
               {
                  cout << "Bye Received" << endl;
                  auto_ptr<SipMessage>
msg200(Helper::makeResponse(*received, 200, contact));
                  calls--;
                  mStack.send(*msg200);
               }


            }
         }

I am sending request to this server using multiple clients. When I check
the top log the memory usage is continiously growing. Am I not releasing
something?

Thanks in advance.
Ritesh

-----Original Message-----
From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
resiprocate-devel-request@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, July 15, 2004 12:00 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: resiprocate-devel Digest, Vol 3, Issue 14


Send resiprocate-devel mailing list submissions to
        resiprocate-devel@xxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
or, via email, send a message with subject or body 'help' to
        resiprocate-devel-request@xxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
        resiprocate-devel-owner@xxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific than
"Re: Contents of resiprocate-devel digest..."