https://osmocom.org/https://osmocom.org/favicon.ico?16647414092017-11-27T21:11:40ZOpen Source Mobile CommunicationsOsmoMGW - Feature #2580: implement timeout/resend mechanism for mgcp_clienthttps://osmocom.org/issues/2580?journal_id=63852017-11-27T21:11:40Zdexter
<ul></ul><p>The problems I see here are not only about the timeout. One serious problem, which is really hard cope with are late MGW responses. Imaginge for some reason osmo-mgw responds very late (a few seconds). The timeouts in the CA already caused all context information to be freed. Then the response is processed by the client, the callback function is called and tries to dereference the pointer to the context information. This is a use-after-free bug. I think the best way to deal with this is to have functionality that allows us to tell the client that we are not interested in the response anymore. By this we can terminate pending requests early just before we free the context data.</p> OsmoMGW - Feature #2580: implement timeout/resend mechanism for mgcp_clienthttps://osmocom.org/issues/2580?journal_id=65602017-12-04T20:34:00Zdexter
<ul></ul><p>We do not have the timeout functionality yet, but we do have a nice way to cancel pending transactions. So if the MGW response times out on the users FSM, the user is still able to cancel the transaction before freeing the context information. This way we prevent a possible use-after-free if an MGW response arrives very late. See also: <a class="external" href="https://gerrit.osmocom.org/#/c/5110/">https://gerrit.osmocom.org/#/c/5110/</a></p> OsmoMGW - Feature #2580: implement timeout/resend mechanism for mgcp_clienthttps://osmocom.org/issues/2580?journal_id=158362019-09-04T09:26:14Zlaforge
<ul><li><strong>Assignee</strong> deleted (<del><i>dexter</i></del>)</li></ul>