logo       

TCP connect timeout?: msg#00017

network.lwip.general

Subject: TCP connect timeout?

Hi group,

I use lwip 1.2.0 at BSD layer. If I try to do a TCP connect to an "unplugged"
IP device from my lwip platform, I block my socket too long. Is there some
features or opts.h values to use to reduce this timeout?

In tcp.c, I found :

if (pcb->state == SYN_SENT && pcb->nrtx == TCP_SYNMAXRTX) {
++pcb_remove;
LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n"));
}

So, is the connection timeout equal to TCP_SYNMAXRTX * tcp_slowtmr "period" ?

Is reduce TCP_SYNMAXRTX the good way to reduce the TCP connect timeout?

Thank you for your informations...


====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : frederic.bernon-BCy3RaB/VaZGWvitb5QawA@xxxxxxxxxxxxxxxx
Web Site : http://www.hymatom.fr
====================================


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise