Hi Noam,

Thanks.

Just increased both MEMP_NUM_PBUF to 50, MEM_NUM_TCP_PCB TO 15.
I'm not sure if its harder to reproduce(longer time to run) - maybe. but it
still happens..




On Tue, Nov 7, 2017 at 5:36 PM, Noam Weissman <[email protected]> wrote:

> Hi,
>
>
>
> Check that you have MEMP_NUM_PBUF 50 or more
>
> that MEMP_NUM_TCP_PCB is 15 or more
>
>
>
> The above may help, I think.
>
>
>
> Noam.
>
>
>
> *From:* lwip-users [mailto:[email protected]] *On
> Behalf Of *Itzik Levi
> *Sent:* Tuesday, November 07, 2017 5:29 PM
> *To:* Mailing list for lwIP users
> *Subject:* Re: [lwip-users] Lwip tcp-stack reliability issue when using
> non-reliable network?
>
>
>
> Unfortunately, enabling Nagle did not do the trick, still got the same
> result. :(
>
>
>
> On Tue, Nov 7, 2017 at 4:20 PM, Itzik Levi <[email protected]> wrote:
>
> Thanks for the reply!
>
>
>
> Actually, the end goal is to integrate the solution into rfcomm.
>
>
>
> For now, the "physical layer" is being simulated by a single local host
> tcp connection(under Android OS).
>
> The losses are simulated by simply randomly dropping data in lwip's pppos "
> output_cb".
>
>
>
> I'll attempt to re-enable Nagle, see if there is any changes and report
> back.
>
>
>
>
>
>
>
> On Tue, Nov 7, 2017 at 4:09 PM, Gisle Vanem <[email protected]> wrote:
>
> Itzik Levi wrote:
>
> I'll go over your lwipopts and see whether I missed something.
> In addition, I will attempt to useSO_SNDTIMEO and SO_RCVTIMEO instead of
> polling in parallel to write and read(I understand by the samples its a
> more health way of using this api).
>
> If you have anymore suggestions, that will be great!
>
>
> I think you wrote earlier than you had disabled
> "Nagle algorithm". Are you sure that's a good idea?
> Maybe you're saturating your RF-link with small fragments.
>
> Just a thought since it's almost never a good idea to
> turn off Nagle.
>
> --
> --gv
>
>
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
>
>
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to