lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Sub:Error in Large File Transfer to remote server using


From: Kieran Mansley
Subject: Re: [lwip-users] Sub:Error in Large File Transfer to remote server using RAW LWIP 1.3.0 (stellaris LM3S6432)
Date: Thu, 09 Jun 2011 10:21:46 +0100

On Wed, 2011-06-08 at 09:08 +0530, Soma Sundari wrote:
> 

> sent the lwipopts.h with our configuration settings.please verify that
> and if need any changes for memory 
>  
> allocation , let me know.

There are few things you could try:

1) 
#define IP_REASSEMBLY                   0           // default is 1
#define IP_FRAG                         0           // default is 1
 - if anything between you and the remote server is causing IP
fragmentation, you'll struggle with these settings.  Put them back to 1.

2)
#define TCP_WND                         2048        // default is 2048  
//#define TCP_MAXRTX                      12
//#define TCP_SYNMAXRTX                   6
//#define TCP_QUEUE_OOSEQ                 1
#define TCP_MSS                         1024        // default is 128 
//#define TCP_CALCULATE_EFF_SEND_MSS      1
#define TCP_SND_BUF                     (6 * TCP_MSS) 
                                                    // default is 256
#define TCP_SND_QUEUELEN                (MEMP_NUM_TCP_SEG)
                                                    // default is (4 *
(TCP_SND_BUF/TCP_MSS))

I would (i) increase TCP_WND; (ii) decrease TCP_SND_QUEUELEN.  With it
set to NUM_TCP_SEG you can end up with the situation where all the
buffers are queued to send, leaving none available to process received
segments (such as ACKs) and so the connection deadlocks.  

Kieran
> 




reply via email to

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