espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.87k stars 7.32k forks source link

Any examples with TCP server for LwIP? (IDFGH-323) #2271

Closed sarpdaltaban closed 5 years ago

sarpdaltaban commented 6 years ago

PPPoS is working great and thank you for the example.

However, when I try to implement a TCP server over PPPoS, Incorrect ack number returns to the Clients who try to connect.

When I try to implement a TCP client over PPPoS, client can connect to a server but can send data until a TCP window size is reached. The window must be refreshed per send, but it doesn't and overloads..

I tried to use Raw API(LwIP), Netconn API and BSD Socket API in a second thread and results are the same..

liuzfesp commented 6 years ago

@sarpdaltaban we don't have example for TCP server yet.

Could you provide your code which is based on Socket API here, then we can check it.

Alvin1Zhang commented 6 years ago

@sarpdaltaban Could you help provide some inputs? Thanks.

Alvin1Zhang commented 5 years ago

@sarpdaltaban Thanks for reporting the issue, could you please help provide some more inputs? Thanks.

liuzfesp commented 5 years ago

@@sarpdaltaban, we already have TCP examples in $IDF_PATH/examples/protocols/sockets/tcp_server, please check it please.

Alvin1Zhang commented 5 years ago

@sarpdaltaban Thanks for reporting the issue, feel free to reopen the ticket if the issue still happens, thanks.