lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] Duplicate local port number of client in multithreading


From: Stian Skjelstad
Subject: Re: [lwip-devel] Duplicate local port number of client in multithreading scenario
Date: Mon, 22 Aug 2022 18:58:48 +0200

https://www.nongnu.org/lwip/2_1_x/multithreading.html

Short answer is no, but it can be worked around

Stian

On Mon, 22 Aug 2022, 17:24 wuchangsheng (C) via lwip-devel, <lwip-devel@nongnu.org> wrote:

Hi, all:

         In the multithreading scenario, when each thread uses one LwIP, the local port generated by the client may be duplicated. Then I looked at the code and found that in the tcp_new_port function, tcp_port is a global variable. This may result in duplicate ports when multithreading.

    Dose LwIP support multithreading.

_______________________________________________
lwip-devel mailing list
lwip-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]