|
From: | Carr, Anthony |
Subject: | [lwip-users] Potential problem with tcp_output() |
Date: | Wed, 6 Mar 2013 12:43:04 +0000 |
Hi, I am running a multiple connection server under lwIP 1.3.1 using raw API without an OS. Occasionally I get a problem where incoming commands from 2 clients overlap and both responses are returned to one client rather than the different clients. The command response is sent by calling tcp_write() followed immediately by tcp_output(). My question is as follows. If the first command response is processed and sent, followed very quickly by the second command response, will the second call to tcp_output() fail if the first response is still in the process of being transmitted? If this is the case what happens to the second command response that is enqueued? Will this be sent when tcp_slowtmr() is next called? Thanks, Tony
Anthony Carr
Principal Electronics Engineer
Unit D1, Grafton Way Basingstoke, Hampshire RG22 6HZ |
T: +44 (0)1256 467367 F: +44 (0)1256 840048 M: E: address@hidden |
This email contains confidential and/or privileged information belonging to Devlin Electronics Limited, its affiliates and/or subsidiaries. If you are not the intended reciient you are hereby notified that any disclosure, copying, distribution and/or the taking of any action based upon relieance on the contents of this transmission is strictly forbidden. If you have received this message in error; please notify the sender by retirun email and delete it from your system, If you require assistance please contact our sales office on +44 (0)1256 467367 or visit our website www.devlin.co.uk.
[Prev in Thread] | Current Thread | [Next in Thread] |