Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32

2009-12-08 Thread goldsi...@gmx.de
patelbaroda wrote: I have one thread for web server, that call "netconn_write" function. The other thread is from ethernetif.c that handles the MACB input packets. The TCPIP thread is handling TCPIP process as defined sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE

Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32

2009-12-08 Thread patelbaroda
I have one thread for web server, that call "netconn_write" function. The other thread is from ethernetif.c that handles the MACB input packets. The TCPIP thread is handling TCPIP process as defined sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);

Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32

2009-12-08 Thread Simon Goldschmidt
pragnesh patel wrote: > There is only one connection. As I understand, the crash inside > tcp_enqueue() may be because of two threads (one from incoming request through > tcp_in.c) and other outgoing request) and needs protection. But as newcomer to > lwip world, I don't know where to protect. Ta

Re: [lwip-users] Problem with do_writemore() + LWIP for AVR32

2009-12-08 Thread Kieran Mansley
On Mon, 2009-12-07 at 09:02 -0800, pragnesh patel wrote: > > There is only one connection. As I understand, the crash inside > tcp_enqueue() may be because of two threads (one from incoming request > through tcp_in.c) and other outgoing request) and needs protection. > But as newcomer to lwip worl

Re: [lwip-users] How to detect a FIN from the remote side

2009-12-08 Thread Simon Goldschmidt
Marco Jakobs wrote: > But i have to also get rid of the RAW stuff, because i want to do some > changes concerning NAT support ... And NAT support can't be used with the raw API? I'd be surprised about that... Although I haven't used NAT for lwIP yet. > And relating to this, my question to you (

Re: [lwip-users] How to detect a FIN from the remote side

2009-12-08 Thread Marco Jakobs
Thank you, Simon ... the conn->err query saved my day ;-) I rewrote my connection status detection using the err variable and it works perfectly! RAW API is a pretty good thing, but the problem is that they are not thread-safe ... so it's some complicated using them in a FreeRTOS project wher