[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] lwIP 1.3.x and tcp socket disconnects in the ESTABLISHE
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] lwIP 1.3.x and tcp socket disconnects in the ESTABLISHED state |
Date: |
Fri, 23 Jan 2009 17:45:21 +0100 |
In the past, such things as errors depending on timing (which also could be why
full debug doesn't work) mostly were errors in the port or driver like more
than one thread working in the lwIP core at the same time.
You should check your port and driver for correctness first. Of course it could
also be a bug in lwIP, but things like "I cannot turn on all TCP debug as this
will cause the stack not to work at all" are highly suspicious of threading
problems!
Simon
Dustin Stahlback wrote:
> Gentleman,
>
> I have the following setup:
>
> lwIP 1.3.0.x (latest CVS), freeRTOS 5.0.0, AT91SAM7X256
>
> I use the PPP driver to interface to analog and wireless modems.
>
>
> I am looking for some advice an trying to track down an issue while
> recieving data from a TCP socket using the netconn api.
>
>
> I have a specific file (random data padded with 230K+ bytes of 0xFF).
> Sometimes, this file transfer causes the TCP socket to close and send
> the FIN packet even though the file has not finished being received.
> The state the TCP socket is in is ESTABLISHED when the socket closes,
> whereas on a proper functioning file transfer, the socket closes in the
> state CLOSE_WAIT. This was determined from the tcp_debug_print_state()
> mechanism. The stats_display() indicates that I have allocated enough
> resources for this specific task so I believe I have a decent lwipopts.h
> setup. I can decrease the failure rate by enabling a debug statement
> (2ms to printout) in the function tcp_process() under the ESTABLISHED
> case. I cannot turn on all TCP debug as this will cause the stack not
> to work at all.
>
> If you have any ideas I would appreciate them.
>
> Thanks,
>
> Dustin
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
--
NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL
für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a