[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Sys_Timeout(); Calling Handler Immediately?
From: |
chrysn |
Subject: |
Re: [lwip-users] Sys_Timeout(); Calling Handler Immediately? |
Date: |
Sat, 19 Oct 2013 12:48:57 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Oct 09, 2013 at 11:41:50PM -0700, Ishmeet wrote:
> I am using LwIP 1.4.1, the problem is I have to use sys_timeouts(), for "Ping
> Request Timed out" prints inside ping.c. When I send ping requests using
> ping_send_now(). I call sys_timeout(1000, ping_timeout, ping_pcb); along
> with it. The problem is ping_timeout handler calls immediately after calling
> sys_timeout, rather it should call after 1000 msec as described.
what are you using to handle timeouts? do you use an operating system
(which?) or are you in NO_SYS=1 mode? if NO_SYS=1, is your sys_now()
function reliably producing milliseconds?
best regards
chrysn
--
To use raw power is to make yourself infinitely vulnerable to greater powers.
-- Bene Gesserit axiom
signature.asc
Description: Digital signature