[pfcp] response_timeout should not call ogs_pfcp_xact_delete (#2072)

* [pfcp] response_timeout should never call ogs_pfcp_xact_delete (#50)

* also remove ogs_pfcp_xact_delete since never called

* also had to catch one more ogs_pfcp_sendto()

---------

Co-authored-by: Spencer Sevilla <spencer@MacBook-Air.local>
This commit is contained in:
Spencer Sevilla 2023-02-16 13:50:50 -08:00 committed by GitHub
parent 512cc2d01b
commit d30fcbb848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -563,8 +563,6 @@ int ogs_pfcp_xact_commit(ogs_pfcp_xact_t *xact)
if (ogs_pfcp_sendto(xact->node, pkbuf) != OGS_OK) {
ogs_error("ogs_pfcp_sendto() failed");
ogs_pfcp_xact_delete(xact);
return OGS_ERROR;
}
return OGS_OK;
@ -607,7 +605,6 @@ static void response_timeout(void *data)
if (ogs_pfcp_sendto(xact->node, pkbuf) != OGS_OK) {
ogs_error("ogs_pfcp_sendto() failed");
goto out;
}
} else {
ogs_warn("[%d] %s No Reponse. Give up! "
@ -625,9 +622,6 @@ static void response_timeout(void *data)
}
return;
out:
ogs_pfcp_xact_delete(xact);
}
static void holding_timeout(void *data)