lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] connect block for ever?? (i need a workaround)


From: Kieran Mansley
Subject: Re: [lwip-devel] connect block for ever?? (i need a workaround)
Date: Thu, 02 Oct 2008 11:25:25 +0100

On Thu, 2008-10-02 at 12:12 +0200, Piero 74 wrote:
> Hi kieran
> 
> 
> I'm using BSD socket. All my application is build above sockets.

I don't think the sockets API in lwIP supports and sort of user-settable
timeout or asynchronous operation.

I think the TCP stack should eventually give up retransmitting the SYN,
and I hope this error should get propagated back to the application, but
the nature of TCP is such that these timeouts can be of the order of
hours rather than minutes.  You could probably fiddle with the SYN
timeout specification to adjust this for your now needs by either
setting the TCP_MAXSYNRTX (defaults to 6) or adjusting the timeouts
between retransmissions (see the use of the tcp_backoff array in
src/core/tcp.c) but the latter will affect data packets as well as SYN
packets.

Kieran 





reply via email to

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