Is it sufficient to detelet context in RPC Response Messages

9 views
Skip to first unread message

Dilum

unread,
Aug 5, 2010, 10:25:30 AM8/5/10
to oversim
Hi all,

All OverSim examples seems to be deleting the context after handling
the RPC response. Do we still need to delete the response message?
I'm seeing the number of present DHT PUT messages continue to increase
in MyDHTTestApp.

However, simulator don't complain about any undeleted messages when it
finish.
I realized that RPC call messages get deleted when we call
sendRpcResponse()

Thanks a lot.

Best Regards,
Dilum

Bernhard Heep

unread,
Aug 12, 2010, 10:29:52 AM8/12/10
to ove...@googlegroups.com
Hi!

I'm not sure if I understood your question. RPC call messages are
deleted automatically when sending an RPC response message using
sendRpcResponse(call, response). If you do not respond to a RPC call,
you have to delete the call message by yourself.

Response messages are deleted in BaseRpc::internalHandleRpcMessage().


Regards,
Bernhard

--
Karlsruher Institut für Technologie (KIT) - Institut für Telematik

Dipl.-Inform. Bernhard Heep
Wissenschaftlicher Mitarbeiter
Zirkel 2 / Postfach 6980
76128 Karlsruhe

Telefon: +49 721 608-6397
Fax: +49 721 608-6789
E-Mail: he...@kit.edu

http://www.kit.edu/
KIT - Universität des Landes Baden-Württemberg und nationales
Großforschungszentrum in der Helmholtz-Gemeinschaft


Reply all
Reply to author
Forward
0 new messages