提交 f9af6b4d authored 作者: Michael Jerris's avatar Michael Jerris

Tue May 6 17:00:19 EDT 2008 first.last@nokia.com

  * nta.c: use consistently uint32_t when handling millisecond timers inside nta
  
  The timer handling failed miserably on 64-bit platforms each time uint32_t
  counter for milliseconds wrapped around.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8287 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d9f16679
......@@ -102,9 +102,9 @@ struct nta_agent_s
nta_update_magic_t *sa_update_magic;
nta_update_tport_f *sa_update_tport;
su_duration_t sa_next; /**< Timestamp for next agent_timer. */
su_time_t sa_now; /**< Timestamp in microsecond resolution. */
uint32_t sa_millisec; /**< Timestamp in milliseconds resolution. */
uint32_t sa_next; /**< Timestamp for next agent_timer. */
uint32_t sa_millisec; /**< Timestamp in milliseconds. */
uint32_t sa_nw_updates; /* Shall we enable network detector? */
......@@ -419,8 +419,8 @@ struct nta_incoming_s
sip_timestamp_t *irq_timestamp;
su_time_t irq_received;
su_duration_t irq_timeout; /**< Timer H, I, J */
su_duration_t irq_retry; /**< Timer G */
uint32_t irq_timeout; /**< Timer H, I, J */
uint32_t irq_retry; /**< Timer G */
unsigned short irq_interval; /**< Next timer */
short irq_status;
......@@ -499,8 +499,8 @@ struct nta_outgoing_s
su_time_t orq_sent; /**< When request was sent? */
unsigned orq_delay; /**< RTT estimate */
su_duration_t orq_retry; /**< Timer A, E */
su_duration_t orq_timeout; /**< Timer B, D, F, K */
uint32_t orq_retry; /**< Timer A, E */
uint32_t orq_timeout; /**< Timer B, D, F, K */
unsigned short orq_interval; /**< Next timer A/E */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论