Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usrloc: extend handle_lost_tcp use for get_urecord #1365

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/modules/usrloc/urecord.c
Expand Up @@ -216,15 +216,15 @@ void mem_delete_ucontact(urecord_t* _r, ucontact_t* _c)
free_ucontact(_c);
}

inline int is_valid_tcpconn(ucontact_t *c)
int is_valid_tcpconn(ucontact_t *c)
{
if (c->tcpconn_id == -1)
return 0; /* tcpconn_id is not present */
else
return 1; /* valid tcpconn_id */
}

inline int is_tcp_alive(ucontact_t *c)
int is_tcp_alive(ucontact_t *c)
{
struct tcp_connection *con = NULL;
int rc = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/modules/usrloc/urecord.h
Expand Up @@ -189,8 +189,8 @@ int get_ucontact(urecord_t* _r, str* _c, str* _callid, str* _path,
int get_ucontact_by_instance(urecord_t* _r, str* _c, ucontact_info_t* _ci,
ucontact_t** _co);

inline int is_valid_tcpconn(ucontact_t *c);
int is_valid_tcpconn(ucontact_t *c);

inline int is_tcp_alive(ucontact_t *c);
int is_tcp_alive(ucontact_t *c);

#endif