> 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


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to