diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-04-06 17:31:14 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-04-11 13:03:57 -0500 |
commit | f8219a2e12579b0cf0119756dec699f5a8c5640a (patch) | |
tree | 9eeb9ceef466459c463cd13acf87698c2372a4bd /res/stasis/messaging.c | |
parent | 19b82a864415f57c72fa939f0909622761d3b358 (diff) |
stun.c: Fix ast_stun_request() erratic timeout.
If ast_stun_request() receives packets other than a STUN response then we
could conceivably never exit if we continue to receive packets with less
than three seconds between them.
* Fix poll timeout to keep track of the time when we sent the STUN
request. We will now send a STUN request every three seconds regardless
of how many other packets we receive while waiting for a response until we
have completed three STUN request transmission cycles.
Change-Id: Ib606cb08585e06eb50877f67b8d3bd385a85c266
Diffstat (limited to 'res/stasis/messaging.c')
0 files changed, 0 insertions, 0 deletions