lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] [bug #36167] tcp server crash when client closes


From: Mason
Subject: Re: [lwip-devel] [bug #36167] tcp server crash when client closes
Date: Fri, 13 Apr 2012 16:54:51 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Firefox/11.0 SeaMonkey/2.8

christian wrote:

> We have a ftp server implementation that uses lwip as stack. When the server
> has the connection stablished and the client (on a different linux host)
> closes the socket, the lwip stack receives the FIN flag and the state machine
> goes to close-wait. However, the stack fails in an assert in the tcp_recved
> function:
> 
> LWIP_ASSERT("tcp_recved: len would wrap rcv_wnd\n", len <= 0xffff -
> pcb->rcv_wnd );
> 
> In the call to tcp_recved len is 1 and pcb->rcv_wnd is 0xffff.
> 
> We have TCP_WND set to 0xffffU.

I have
#define TCP_MSS 1460
#define TCP_WND (40*TCP_MSS)
#define TCP_SND_BUF (8*TCP_MSS)
#define TCP_SND_QUEUELEN 16

Does your stack still crash with these values?

-- 
Regards.



reply via email to

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