buglwIP - A Lightweight TCP/IP stack - Bugs: bug #59504, Connection reset


You are not allowed to post comments on this tracker with your current authentication level.

bug #59504: Connection reset

Submitted by:  Oleg Kobrin <kiabrin>
Submitted on:  Mon 23 Nov 2020 09:37:03 AM UTC
Category:  TCP Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
lwIP version:  * git head
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:
       No canned response available


Mon 23 Nov 2020 11:14:09 AM UTC, comment #2: 

Using Wireshark I see that my side does not ACK any packets after first one:

646 14.463599 TCP 66 50422 → 8070 [PSH, ACK] Seq=13 Ack=1461 Win=64240 Len=12
649 14.511317 TCP 1514 8070 → 50422 [PSH, ACK] Seq=1461 Ack=13 Win=4084 Len=1460

After some timeout host retransmits unacked packets:

673 14.764273 TCP 66 [TCP Retransmission] 50422 → 8070 [PSH, ACK] Seq=13 Ack=6781 Win=64240 Len=12
706 15.363707 TCP 66 [TCP Retransmission] 50422 → 8070 [PSH, ACK] Seq=13 Ack=14053 Win=63628 Len=12
767 16.563900 TCP 90 [TCP Retransmission] 50422 → 8070 [PSH, ACK] Seq=13 Ack=25281 Win=64240 Len=36
911 18.963925 TCP 114 [TCP Retransmission] 50422 → 8070 [PSH, ACK] Seq=13 Ack=53329 Win=64240 Len=60
1260 23.764679 TCP 174 [TCP Retransmission] 50422 → 8070 [PSH, ACK] Seq=13 Ack=106417 Win=63028 Len=120

but my side continues sending ack=13 until connection closed.

1849 33.365213 TCP 54 50422 → 8070 [RST, ACK] Seq=241 Ack=218305 Win=0 Len=0
1850 33.365455 TCP 1514 8070 → 50422 [PSH, ACK] Seq=218305 Ack=13 Win=4084 Len=1460
1851 33.365476 TCP 54 50422 → 8070 [RST] Seq=13 Win=0 Len=0
1852 33.365673 TCP 1514 8070 → 50422 [PSH, ACK] Seq=219765 Ack=13 Win=4084 Len=1460
1853 33.365685 TCP 54 50422 → 8070 [RST] Seq=13 Win=0 Len=0

Oleg Kobrin <kiabrin>
Mon 23 Nov 2020 09:42:06 AM UTC, comment #1: 

Using Java client application I got the message:

"The connection attempt failed because the other computer did not respond in the required time, or the connection was broken because the computer already connected was not responding correctly"

Oleg Kobrin <kiabrin>
Mon 23 Nov 2020 09:37:03 AM UTC, original submission:  

Using LwIP 2.1.2 on TI TivaC MCU in NO_OS mode.
My code sends a packets via TCP/IP to the application on a computer at the following rate:
11 12-byte packets at 100Hz and 25 12-byte packets at 1Hz. So overall data rate is 13500 bytes/s.
After about a minute of such traffic I got and error callback with ERR_RST code at my side and in the same time I got WSAENETRESET error during recv() at computer side, which means some keep-alive activity on a connection was failed.

What could be the cause?

Oleg Kobrin <kiabrin>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by kiabrin (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.





    No changes have been made to this item

    Back to the top

    Powered by Savane 3.9