lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] netconn - using in different tasks


From: Simon Goldschmidt
Subject: Re: [lwip-users] netconn - using in different tasks
Date: Mon, 18 May 2009 14:29:52 +0200

> Finally I wrote the server with RAW API and tcpip_callback function. It's
> working ok, but there is a one strange thing. Sending reply to the client
> takes about 250 - 1000 ms (taken from Wireshark). Sending reply directly
> (without tcpip_callback) takes less time (max 2 - 5 ms). Have you got similar
> results?

Are you saying you are calling something like tcp_write()/tcp_output() from one 
of the serial threads? That would break lwIP threading and very likely produces 
bugs (even if not always - depends on timing).

Why tcpip_callback needs longer is strange, though. You could try to turn on 
debug logging and/or check the return values of tcp_write()/tcp_output(): such 
long time spans suggest data is not sent right away but only later (from a TCP 
timer).

Simon
-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a




reply via email to

[Prev in Thread] Current Thread [Next in Thread]