Ok Simon, I was only thinking of a solution that did not require me to redesign the application that I inherited.
Christophe -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Friday, July 24, 2009 5:08 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] Maximum retransmission value Changing these defines is generally not a good idea, unless you have detailed knowledge of what they do in the tcp stack. You might risk unstable connections on networks which are not 100% safe against packet loss, and you also might risk interoperability with other network stacks/devices. In general, it is better to design your communication protocol in a way to detect a timeout instead of changing the timeout at TCP level, where you change it for all connections - although you might only need the timeout for a dedicated control connection (or something like that). Simon PELISSIER Christophe wrote: > Hi, > > I want to speed up the connection error detection of my application. > Is decreasing the TCP_MAXRTX and TCP_SYNMAXRTX value a good way to be > aware rapidely that a connection has been lost. > > Is there any risk to decrease TCP_MAXRTX from 12 (default value in my > lwipopts.h) to 6 and TCP_SYNMAXRTX from 6 to 3? > > What can be the side effect that i must take care of? > > Thanks for your support. > > Regards, > Christophe > > ---------------------------------------------------------------------- > -- > > _______________________________________________ > lwip-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
