On Thu, 2010-11-25 at 22:45 +0100, Mariusz Dz wrote:
> I hope i understand order of calls, now i have got order like this:
> 
> //some operation on data
> //close file etc.
> 
> pbuf_free(p);
> hs->file = pointer_on_data;
> hs->left = data_length
> tcp_recved(pcb, p->tot_len);
> send_data(pcb, hs);
> tcp_sent(pcb, http_sent);
> tcp_output(pcb);

Try this instead:

hs->file = pointer_on_data;
hs->left = data_length

tcp_sent(pcb, http_sent);
send_data(pcb, hs);
tcp_output(pcb);

tcp_recved(pcb, p->tot_len);
pbuf_free(p);

Kieran


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

Reply via email to