Re: [lwip-users] lwIP delays outgoing TCP packets by up to 500ms

2016-07-13 Thread Jakub Schmidtke
> > I think you might have missed reading the documentation: tcp_write enqueue > data, tcp_outout tries to send it. You always have to call both. > > I actually found the recommended call flow on wiki (Here: http://lwip.wikia.com/wiki/Raw/TCP ) after Mihai mentioned using tcp_output(). And yes, I h

Re: [lwip-users] lwIP delays outgoing TCP packets by up to 500ms

2016-07-13 Thread Jakub Schmidtke
> > Maybe your sys_now() or sys_jiffies() functions are too course? > They should have a resolution of approx. 1 msec. I am not even talking about observed delays. I am looking at the code, and based on that, those packets will be delayed by up to twice the value of TCP_TMR_INTERVAL in millisecon

[lwip-users] lwIP delays outgoing TCP packets by up to 500ms

2016-07-12 Thread Jakub Schmidtke
Hi, I am using lwip with NO_SYS=1, and I have noticed that outgoing TCP packets are very delayed. It looks like between writing a packet (using tcp_write), and the time it actually written to the interface it takes usually about 200ms. I examined the code, and it looks like lwip only writes regu